203 references to Data
Aspire.EndToEnd.Tests (12)
tests\Shared\WorkloadTesting\AspireProject.cs (4)
180if (e.Data is null) 186string line = e.Data; 213if (e.Data is null) 219string line = $"[apphost] {e.Data}";
tests\Shared\WorkloadTesting\ToolCommand.cs (8)
64OutputDataReceived += (_, args) => handler(args.Data); 70ErrorDataReceived += (_, args) => handler(args.Data); 115if (e.Data == null) 122outputLines.Add(e.Data); 124_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 130if (e.Data == null) 137outputLines.Add(e.Data); 139_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
Aspire.Hosting (4)
Dcp\Process\ProcessUtil.cs (4)
61if (String.IsNullOrEmpty(e.Data)) 66processSpec.OnOutputData.Invoke(e.Data); 75if (String.IsNullOrEmpty(e.Data)) 80processSpec.OnErrorData.Invoke(e.Data);
Aspire.Hosting.Azure (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
61if (String.IsNullOrEmpty(e.Data)) 66processSpec.OnOutputData.Invoke(e.Data); 75if (String.IsNullOrEmpty(e.Data)) 80processSpec.OnErrorData.Invoke(e.Data);
Aspire.Hosting.Tests (2)
MSBuildTests.cs (2)
107if (e.Data == null) 113output.AppendLine(e.Data);
Aspire.Workload.Tests (12)
tests\Shared\WorkloadTesting\AspireProject.cs (4)
180if (e.Data is null) 186string line = e.Data; 213if (e.Data is null) 219string line = $"[apphost] {e.Data}";
tests\Shared\WorkloadTesting\ToolCommand.cs (8)
64OutputDataReceived += (_, args) => handler(args.Data); 70ErrorDataReceived += (_, args) => handler(args.Data); 115if (e.Data == null) 122outputLines.Add(e.Data); 124_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 130if (e.Data == null) 137outputLines.Add(e.Data); 139_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
dotnet-svcutil-lib (5)
Shared\Utilities\ProcessRunner.cs (5)
94if (!string.IsNullOrWhiteSpace(e.Data)) 96errorTextBldr.AppendLine(e.Data); 97safeLogger.WriteErrorAsync(e.Data, false).ConfigureAwait(false); 104outputTextBldr.AppendLine(e.Data); 105safeLogger.WriteMessageAsync(e.Data, false).ConfigureAwait(false);
dotnet-user-jwts (4)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
87if (!string.IsNullOrEmpty(d.Data)) 89outputBuilder.AppendLine(d.Data); 94if (!string.IsNullOrEmpty(d.Data)) 96errorBuilder.AppendLine(d.Data);
dotnet-user-secrets (4)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
87if (!string.IsNullOrEmpty(d.Data)) 89outputBuilder.AppendLine(d.Data); 94if (!string.IsNullOrEmpty(d.Data)) 96errorBuilder.AppendLine(d.Data);
HelixTestRunner (6)
ProcessUtil.cs (6)
122if (e.Data != null) 126outputDataReceived.Invoke(e.Data); 130outputBuilder.AppendLine(e.Data); 138if (e.Data != null) 142errorDataReceived.Invoke(e.Data); 146errorBuilder.AppendLine(e.Data);
Interop.FunctionalTests (4)
H2SpecCommands.cs (4)
230if (!string.IsNullOrEmpty(args.Data)) 232logger.LogDebug(args.Data); 237if (!string.IsNullOrEmpty(args.Data)) 239logger.LogError(args.Data);
InteropTests (11)
Helpers\ClientProcess.cs (2)
56var data = e.Data; 73var data = e.Data;
Helpers\WebsiteProcess.cs (2)
66var data = e.Data; 89var data = e.Data;
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Microsoft.Arcade.Common (2)
Command.cs (2)
64ProcessData(args.Data, _stdOutCapture, _stdOutForward, _stdOutHandler); 72ProcessData(args.Data, _stdErrCapture, _stdErrForward, _stdErrHandler);
Microsoft.AspNetCore.Components.WebAssembly.Server (9)
DebugProxyLauncher.cs (9)
150if (eventArgs.Data is not null) 154if (eventArgs.Data.StartsWith(prefix, StringComparison.Ordinal)) 161Console.WriteLine(eventArgs.Data); 178if (!string.IsNullOrEmpty(eventArgs.Data)) 181eventArgs.Data)); 188if (string.IsNullOrEmpty(eventArgs.Data)) 198if (ApplicationStartedRegex.IsMatch(eventArgs.Data) && !isFirefox) 214var matchFirefox = NowListeningFirefoxRegex.Match(eventArgs.Data); 223var match = NowListeningRegex.Match(eventArgs.Data);
Microsoft.AspNetCore.Server.IntegrationTesting (16)
Common\ProcessLoggingExtensions.cs (4)
15if (!string.IsNullOrEmpty(dataArgs.Data)) 17logger.LogInformation($"{prefix} stdout: {{line}}", dataArgs.Data); 23if (!string.IsNullOrEmpty(dataArgs.Data)) 25logger.LogWarning($"{prefix} stderr: {{line}}", dataArgs.Data);
Deployers\SelfHostDeployer.cs (5)
149if (!string.IsNullOrEmpty(dataArgs.Data) && dataArgs.Data.Contains(ApplicationStartedMessage)) 153else if (!string.IsNullOrEmpty(dataArgs.Data)) 155var m = NowListeningRegex.Match(dataArgs.Data); 162ProcessOutputListener?.Invoke(dataArgs.Data);
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISExpressDeployer.cs (5)
196if (string.Equals(dataArgs.Data, UnableToStartIISExpressMessage, StringComparison.Ordinal)) 201else if (string.Equals(dataArgs.Data, FailedToInitializeBindingsMessage, StringComparison.Ordinal)) 205else if (string.Equals(dataArgs.Data, IISExpressRunningMessage, StringComparison.Ordinal)) 209else if (!string.IsNullOrEmpty(dataArgs.Data)) 211var m = UrlDetectorRegex.Match(dataArgs.Data);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Docker.cs (4)
214LogIfNotNull(logger.LogInformation, $"'{prefix}' stdout: {{0}}", a.Data); 215lines.Enqueue(a.Data); 219LogIfNotNull(logger.LogError, $"'{prefix}' stderr: {{0}}", a.Data); 220lines.Enqueue(a.Data);
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Autobahn\Executable.cs (2)
52process.OutputDataReceived += (_, a) => LogIfNotNull(logger.LogInformation, "stdout: {0}", a.Data); 53process.ErrorDataReceived += (_, a) => LogIfNotNull(logger.LogError, "stderr: {0}", a.Data);
Microsoft.Build.UnitTests.Shared (3)
RunnerUtilities.cs (3)
126if (args != null && args.Data != null) 128WriteOutput(args.Data); 129output += args.Data + "\r\n";
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1223if (e.Data != null) 1237dataQueue.Enqueue(e.Data);
Microsoft.CodeAnalysis.Test.Utilities (4)
FX\ProcessUtilities.cs (4)
64if (args.Data != null) 65outputBuilder.AppendLine(args.Data); 69if (args.Data != null) 70errorBuilder.AppendLine(args.Data);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
391if (e.Data is not null) 394_processLogMessages.AppendLine(e.Data); 396_logger?.LogTrace($"Message from Process: {e.Data}");
Microsoft.DotNet.Arcade.Sdk (4)
src\InstallDotNetCore.cs (4)
158if (!String.IsNullOrEmpty(e.Data)) 160Console.WriteLine(e.Data); 165if (!String.IsNullOrEmpty(e.Data)) 167Console.Error.WriteLine(e.Data);
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
79output.WriteLine(e.Data ?? string.Empty);
Microsoft.DotNet.Build.Tasks.Feed (4)
src\common\GeneralUtils.cs (4)
290if (e.Data != null) 294stdOut.AppendLine(e.Data); 306if (e.Data != null) 310stdErr.AppendLine(e.Data);
Microsoft.DotNet.Open.Api.Tools.Tests (7)
ProcessEx.cs (7)
84if (e.Data == null) 91_stderrCapture.AppendLine(e.Data); 94_output.WriteLine("[ERROR] " + e.Data); 99if (e.Data == null) 106_stdoutCapture.AppendLine(e.Data); 109_output.WriteLine(e.Data); 113_stdoutLines.Add(e.Data);
Microsoft.Extensions.ApiDescription.Client.Tests (7)
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Microsoft.ML.Sweeper (4)
ConfigRunner.cs (4)
243p.OutputDataReceived += (s, a) => { if (a.Data != null) standardOutputWriter.WriteLine(a.Data); }; 249p.ErrorDataReceived += (s, a) => { if (a.Data != null) standardErrorWriter.WriteLine(a.Data); };
PrepareTests (1)
TestDiscovery.cs (1)
139errorOutput.AppendLine(e.Data);
Roslyn.Test.Performance.Utilities (4)
TestUtilities.cs (4)
155if (!String.IsNullOrEmpty(e.Data)) 157output.WriteLine(e.Data); 163if (!String.IsNullOrEmpty(e.Data)) 165error.WriteLine(e.Data);
RunTests (6)
ProcessRunner.cs (4)
92if (e.Data != null) 95outputLines.Add(e.Data); 101if (e.Data != null) 103errorLines.Add(e.Data);
TestRunner.cs (2)
142onOutputDataReceived: (e) => { Debug.Assert(e.Data is not null); ConsoleUtil.WriteLine(e.Data); },
System.CodeDom (4)
System\CodeDom\Compiler\Executor.cs (4)
71if (e.Data != null) 73outputWriter.WriteLine(e.Data); 78if (e.Data != null) 80errorWriter.WriteLine(e.Data);
Templates.Blazor.Tests (7)
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Templates.Blazor.WebAssembly.Auth.Tests (9)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
138logOutput.TryAdd(e.Data); 143_diagnosticsMessageSink.OnMessage(new DiagnosticMessage(e.Data));
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Templates.Blazor.WebAssembly.Tests (9)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
138logOutput.TryAdd(e.Data); 143_diagnosticsMessageSink.OnMessage(new DiagnosticMessage(e.Data));
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Templates.Mvc.Tests (9)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
138logOutput.TryAdd(e.Data); 143_diagnosticsMessageSink.OnMessage(new DiagnosticMessage(e.Data));
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);
Templates.Tests (9)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
138logOutput.TryAdd(e.Data); 143_diagnosticsMessageSink.OnMessage(new DiagnosticMessage(e.Data));
src\Shared\Process\ProcessEx.cs (7)
137if (e.Data == null) 144_stderrCapture.AppendLine(e.Data); 151_output.WriteLine("[ERROR] " + e.Data); 158if (e.Data == null) 165_stdoutCapture.AppendLine(e.Data); 172_output.WriteLine(e.Data); 176_stdoutLines?.Add(e.Data);