153 references to Data
aspire (18)
Projects\DotNetBasedAppHostServerProject.cs (6)
525if (e.Data is not null) 527_logger.LogDebug("AppHostServer({ProcessId}) stdout: {Line}", process.Id, e.Data); 528outputCollector.AppendOutput(e.Data); 533if (e.Data is not null) 535_logger.LogDebug("AppHostServer({ProcessId}) stderr: {Line}", process.Id, e.Data); 536outputCollector.AppendError(e.Data);
Projects\PrebuiltAppHostServer.cs (6)
487if (e.Data is not null) 489_logger.LogDebug("PrebuiltAppHostServer({ProcessId}) stdout: {Line}", process.Id, e.Data); 490outputCollector.AppendOutput(e.Data); 495if (e.Data is not null) 497_logger.LogDebug("PrebuiltAppHostServer({ProcessId}) stderr: {Line}", process.Id, e.Data); 498outputCollector.AppendError(e.Data);
Projects\ProcessGuestLauncher.cs (6)
74if (e.Data is null) 81_logger.LogDebug("{Language}({ProcessId}) stdout: {Line}", _language, process.Id, e.Data); 82outputCollector.AppendOutput(e.Data); 88if (e.Data is null) 95_logger.LogDebug("{Language}({ProcessId}) stderr: {Line}", _language, process.Id, e.Data); 96outputCollector.AppendError(e.Data);
Aspire.Components.Common.TestUtilities (4)
ConformanceTests.cs (4)
632if (e.Data is not null) 634testOutput.WriteLine($"[RemoteExecutor] {e.Data}"); 639if (e.Data is not null) 641testOutput.WriteLine($"[RemoteExecutor] ERROR: {e.Data}");
Aspire.EndToEnd.Tests (12)
tests\Shared\TemplatesTesting\AspireProject.cs (4)
201if (e.Data is null) 207string line = e.Data; 235if (e.Data is null) 241string line = $"[apphost] {e.Data}";
tests\Shared\TemplatesTesting\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)
63if (String.IsNullOrEmpty(e.Data)) 68processSpec.OnOutputData.Invoke(e.Data); 77if (String.IsNullOrEmpty(e.Data)) 82processSpec.OnErrorData.Invoke(e.Data);
Aspire.Hosting.Azure (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
63if (String.IsNullOrEmpty(e.Data)) 68processSpec.OnOutputData.Invoke(e.Data); 77if (String.IsNullOrEmpty(e.Data)) 82processSpec.OnErrorData.Invoke(e.Data);
Aspire.Hosting.Docker (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
63if (String.IsNullOrEmpty(e.Data)) 68processSpec.OnOutputData.Invoke(e.Data); 77if (String.IsNullOrEmpty(e.Data)) 82processSpec.OnErrorData.Invoke(e.Data);
Aspire.Hosting.Tests (4)
MSBuildTests.cs (4)
237if (e.Data == null) 243output.AppendLine(e.Data); 563if (e.Data == null) 569output.AppendLine(e.Data);
Aspire.Templates.Tests (12)
tests\Shared\TemplatesTesting\AspireProject.cs (4)
201if (e.Data is null) 207string line = e.Data; 235if (e.Data is null) 241string line = $"[apphost] {e.Data}";
tests\Shared\TemplatesTesting\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-format (4)
Utilities\ProcessRunner.cs (4)
85if (e.Data != null) 87outputLines.Add(e.Data); 93if (e.Data != null) 95errorLines.Add(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\aspnetcore\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\aspnetcore\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);
Infrastructure.Tests (18)
ExtractTestPartitions\ExtractTestPartitionsTests.cs (6)
318if (e.Data is not null) 320outputLines.Add(e.Data); 321_output.WriteLine($"[stdout] {e.Data}"); 327if (e.Data is not null) 329outputLines.Add(e.Data); 330_output.WriteLine($"[stderr] {e.Data}");
PowerShellScripts\PowerShellCommand.cs (6)
94if (e.Data is null) 101outputLines.Add(e.Data); 103_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 109if (e.Data is null) 116outputLines.Add(e.Data); 118_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
WorkflowScripts\NodeCommand.cs (6)
86if (e.Data is null) 93outputLines.Add(e.Data); 96_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 101if (e.Data is null) 108outputLines.Add(e.Data); 111_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
Microsoft.Agents.AI.ProjectTemplates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommand.cs (3)
70if (args.Data is null) 77outputBuilder.AppendLine(args.Data); 82outputHelper.WriteLine(args.Data);
Microsoft.Arcade.Common (2)
Command.cs (2)
64ProcessData(args.Data, _stdOutCapture, _stdOutForward, _stdOutHandler); 72ProcessData(args.Data, _stdErrCapture, _stdErrForward, _stdErrHandler);
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1308if (e.Data == null) 1340dataQueue.Enqueue(e.Data);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
478if (e.Data is not null) 481_processLogMessages.AppendLine(e.Data); 483_logger?.LogTrace($"Message on {outputName}: {e.Data}");
Microsoft.DotNet.Arcade.Sdk (4)
src\InstallDotNetCore.cs (4)
169if (!String.IsNullOrEmpty(e.Data)) 171Console.WriteLine(e.Data); 176if (!String.IsNullOrEmpty(e.Data)) 178Console.Error.WriteLine(e.Data);
Microsoft.DotNet.HotReload.Watch (4)
Process\ProcessRunner.cs (4)
180if (args.Data != null) 182onOutput(new OutputLine(args.Data, IsError: false)); 195if (args.Data != null) 197onOutput(new OutputLine(args.Data, IsError: true));
Microsoft.Extensions.AI.Templates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommand.cs (3)
70if (args.Data is null) 77outputBuilder.AppendLine(args.Data); 82outputHelper.WriteLine(args.Data);
Microsoft.McpServer.ProjectTemplates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommand.cs (3)
70if (args.Data is null) 77outputBuilder.AppendLine(args.Data); 82outputHelper.WriteLine(args.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); };
Microsoft.NET.Sdk.Publish.Tasks (4)
Tasks\GenerateEFSQLScripts.cs (4)
172if (e.Data != null) 176_standardError.AppendLine(e.Data); 183if (e.Data != null) 187_standardOut.AppendLine(e.Data);
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
ProcessCodeMethods.cs (2)
144ps.OutputDataReceived += (_, e) => output.Append(e.Data); 145ps.ErrorDataReceived += (_, e) => err.Append(e.Data);
Microsoft.TestPlatform.PlatformAbstractions (2)
common\System\ProcessHelper.cs (2)
127process.OutputDataReceived += (sender, args) => outputCallBack(sender as Process, args.Data); 132process.ErrorDataReceived += (sender, args) => errorCallback(sender as Process, args.Data);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (5)
VsTestConsoleProcessManager.cs (5)
248if (e.Data != null) 250EqtTrace.Error(e.Data); 251_vstestConsoleError.AppendLine(e.Data); 257if (e.Data != null) 259EqtTrace.Verbose(e.Data);
NuGet.Build.Tasks (3)
StaticGraphRestoreTaskBase.cs (3)
138process.OutputDataReceived += (sender, args) => loggingQueue.Enqueue(args?.Data); 142if (args.Data != null) 145Log.LogError(args.Data);
NuGet.Credentials (3)
PluginCredentialProvider.cs (3)
263process.OutputDataReceived += (object o, DataReceivedEventArgs e) => { outBuffer.AppendLine(e.Data); }; 269if (!string.IsNullOrWhiteSpace(e?.Data)) 274_logger.LogInformation($"{process.ProcessName}: {e.Data}");
NuGet.Protocol (1)
Plugins\PluginProcess.cs (1)
161LineRead?.Invoke(sender, new LineReadEventArgs(e.Data));
SuperFileCheck (4)
Program.cs (4)
127if (e.Data == null) 133stdOut.AppendLine(e.Data); 139if (e.Data == null) 145stdErr.AppendLine(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);