Fix build break.

This commit is contained in:
Kiran Challa 2015-05-28 16:16:46 -07:00
parent 6d07af17ec
commit 568c8b6bc4
3 changed files with 6 additions and 6 deletions

View File

@ -92,8 +92,8 @@ namespace Microsoft.AspNet.Server.Testing
}; };
var hostProcess = new Process() { StartInfo = startInfo }; var hostProcess = new Process() { StartInfo = startInfo };
hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data); }; hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data ?? string.Empty); };
hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data); }; hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data ?? string.Empty); };
hostProcess.Start(); hostProcess.Start();
hostProcess.BeginErrorReadLine(); hostProcess.BeginErrorReadLine();
hostProcess.BeginOutputReadLine(); hostProcess.BeginOutputReadLine();

View File

@ -107,8 +107,8 @@ namespace Microsoft.AspNet.Server.Testing
#endif #endif
_hostProcess = new Process() { StartInfo = startInfo }; _hostProcess = new Process() { StartInfo = startInfo };
_hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data); }; _hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data ?? string.Empty); };
_hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data); }; _hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data ?? string.Empty); };
_hostProcess.EnableRaisingEvents = true; _hostProcess.EnableRaisingEvents = true;
var hostExitTokenSource = new CancellationTokenSource(); var hostExitTokenSource = new CancellationTokenSource();
_hostProcess.Exited += (sender, e) => _hostProcess.Exited += (sender, e) =>

View File

@ -68,8 +68,8 @@ namespace Microsoft.AspNet.Server.Testing
AddEnvironmentVariablesToProcess(startInfo); AddEnvironmentVariablesToProcess(startInfo);
_hostProcess = new Process() { StartInfo = startInfo }; _hostProcess = new Process() { StartInfo = startInfo };
_hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data); }; _hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogError(dataArgs.Data ?? string.Empty); };
_hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data); }; _hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data ?? string.Empty); };
_hostProcess.EnableRaisingEvents = true; _hostProcess.EnableRaisingEvents = true;
var hostExitTokenSource = new CancellationTokenSource(); var hostExitTokenSource = new CancellationTokenSource();
_hostProcess.Exited += (sender, e) => _hostProcess.Exited += (sender, e) =>