215 references to Data
Aspire.Acquisition.Tests (8)
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.Components.Common.TestUtilities (4)
ConformanceTests.cs (4)
659if (e.Data is not null) 661testOutput.WriteLine($"[RemoteExecutor] {e.Data}"); 666if (e.Data is not null) 668testOutput.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 (8)
Dcp\Process\ProcessUtil.cs (8)
90if (e.Data is null) 96if (string.IsNullOrEmpty(e.Data)) 101outputCapture?.Add(e.Data); 102processSpec.OnOutputData?.Invoke(e.Data); 109if (e.Data is null) 115if (string.IsNullOrEmpty(e.Data)) 120outputCapture?.Add(e.Data); 121processSpec.OnErrorData?.Invoke(e.Data);
Aspire.Hosting.Azure (8)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (8)
90if (e.Data is null) 96if (string.IsNullOrEmpty(e.Data)) 101outputCapture?.Add(e.Data); 102processSpec.OnOutputData?.Invoke(e.Data); 109if (e.Data is null) 115if (string.IsNullOrEmpty(e.Data)) 120outputCapture?.Add(e.Data); 121processSpec.OnErrorData?.Invoke(e.Data);
Aspire.Hosting.Docker (8)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (8)
90if (e.Data is null) 96if (string.IsNullOrEmpty(e.Data)) 101outputCapture?.Add(e.Data); 102processSpec.OnOutputData?.Invoke(e.Data); 109if (e.Data is null) 115if (string.IsNullOrEmpty(e.Data)) 120outputCapture?.Add(e.Data); 121processSpec.OnErrorData?.Invoke(e.Data);
Aspire.Hosting.Foundry (5)
FoundryLocalService.cs (5)
134if (e.Data is null) 139logger.LogInformation("{Output}", e.Data); 141if (TryParseEndpoint(e.Data, out var endpoint)) 149if (e.Data is not null) 151logger.LogInformation("{Output}", e.Data);
Aspire.Hosting.Kubernetes (8)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (8)
90if (e.Data is null) 96if (string.IsNullOrEmpty(e.Data)) 101outputCapture?.Add(e.Data); 102processSpec.OnOutputData?.Invoke(e.Data); 109if (e.Data is null) 115if (string.IsNullOrEmpty(e.Data)) 120outputCapture?.Add(e.Data); 121processSpec.OnErrorData?.Invoke(e.Data);
Aspire.Hosting.Radius (17)
Publishing\RadCredentialRegisterStep.cs (4)
280if (e.Data is not null) 282logger.LogInformation("rad (stdout): {Output}", RedactSecretValues(e.Data, secretValues)); 287if (e.Data is not null) 289var redacted = RedactSecretValues(e.Data, secretValues);
Publishing\RadiusDeploymentPipelineStep.cs (7)
172if (e.Data is not null) 174logger.LogInformation("rad (stdout): {Output}", e.Data); 175context.ReportingStep.Log(LogLevel.Information, e.Data); 181if (e.Data is not null) 183stderrBuilder.AppendLine(e.Data); 184logger.LogWarning("rad (stderr): {Error}", e.Data); 185context.ReportingStep.Log(LogLevel.Warning, e.Data);
Publishing\SealedSecretApplyStep.cs (6)
909if (e.Data is not null) 911stdout.AppendLine(e.Data); 914logger?.LogInformation("kubectl (stdout): {Output}", e.Data); 920if (e.Data is not null) 922stderr.AppendLine(e.Data); 923logger?.LogWarning("kubectl (stderr): {Error}", e.Data);
Aspire.Hosting.Tests (4)
MSBuildTests.cs (4)
306if (e.Data == null) 312output.AppendLine(e.Data); 1626if (e.Data == null) 1632output.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 (8)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (8)
93if (!string.IsNullOrEmpty(d.Data)) 95outputBuilder.AppendLine(d.Data); 100if (!string.IsNullOrEmpty(d.Data)) 102errorBuilder.AppendLine(d.Data); 177if (!string.IsNullOrEmpty(d.Data)) 179outputBuilder.AppendLine(d.Data); 184if (!string.IsNullOrEmpty(d.Data)) 186errorBuilder.AppendLine(d.Data);
dotnet-user-secrets (8)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (8)
93if (!string.IsNullOrEmpty(d.Data)) 95outputBuilder.AppendLine(d.Data); 100if (!string.IsNullOrEmpty(d.Data)) 102errorBuilder.AppendLine(d.Data); 177if (!string.IsNullOrEmpty(d.Data)) 179outputBuilder.AppendLine(d.Data); 184if (!string.IsNullOrEmpty(d.Data)) 186errorBuilder.AppendLine(d.Data);
Infrastructure.Tests (18)
ExtractTestPartitions\ExtractTestPartitionsTests.cs (6)
319if (e.Data is not null) 321outputLines.Add(e.Data); 322_output.WriteLine($"[stdout] {e.Data}"); 328if (e.Data is not null) 330outputLines.Add(e.Data); 331_output.WriteLine($"[stderr] {e.Data}");
PowerShellScripts\PowerShellCommand.cs (6)
95if (e.Data is null) 102outputLines.Add(e.Data); 104_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 110if (e.Data is null) 117outputLines.Add(e.Data); 119_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
WorkflowScripts\NodeCommand.cs (6)
87if (e.Data is null) 94outputLines.Add(e.Data); 97_testOutput.WriteLine($"{_msgPrefix}{e.Data}"); 102if (e.Data is null) 109outputLines.Add(e.Data); 112_testOutput.WriteLine($"{_msgPrefix}{e.Data}");
Microsoft.Agents.AI.ProjectTemplates.Tests (3)
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.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\aspnetcore\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.Build.Utilities.Core (2)
ToolTask.cs (2)
1310if (e.Data == null) 1338dataQueue.Enqueue(e.Data);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
491if (e.Data is not null) 494_processLogMessages.AppendLine(e.Data); 496_logger?.LogTrace($"Message on {outputName}: {e.Data}");
Microsoft.DotNet.Arcade.Sdk (4)
src\InstallDotNetCore.cs (4)
161if (!String.IsNullOrEmpty(e.Data)) 163Log.LogMessage(MessageImportance.High, e.Data); 168if (!String.IsNullOrEmpty(e.Data)) 170Log.LogMessage(MessageImportance.High, 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)
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 (3)
common\System\ProcessHelper.cs (3)
96process.OutputDataReceived += (sender, args) => outputCallBack(sender as Process, args.Data); 110if (args.Data is null) 115errorCallback(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 (2)
PluginCredentialProvider.cs (2)
269process.OutputDataReceived += (object o, DataReceivedEventArgs e) => { outBuffer.AppendLine(e.Data); }; 275string? data = e?.Data;
NuGet.Protocol (1)
Plugins\PluginProcess.cs (1)
173LineRead?.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);