17 instantiations of ProcessResult
Aspire.Hosting (2)
Dcp\Process\ProcessUtil.cs (2)
236
return new
ProcessResult
(exitCode);
239
return new
ProcessResult
(exitCode, outputCapture.ToArray(), outputCapture.TotalLineCount);
Aspire.Hosting.Tests (14)
Publishing\ContainerRuntimeBaseTests.cs (14)
71
new
ProcessResult
(0,
75
new
ProcessResult
(0,
179
new
ProcessResult
(0,
224
new
ProcessResult
(0,
260
new
ProcessResult
(0,
264
new
ProcessResult
(0),
265
new
ProcessResult
(0,
302
new
ProcessResult
(0,
306
new
ProcessResult
(0),
307
new
ProcessResult
(0,
330
new
ProcessResult
(0,
334
new
ProcessResult
(0),
335
new
ProcessResult
(0, [imageMetadata])
421
var result = _results.Count > 0 ? _results.Dequeue() : new
ProcessResult
(0);
Aspire.Hosting.TestUtilities (1)
Utils\TestProcessRunner.cs (1)
107
var processResult = new
ProcessResult
(run.ExitCode, processOutput, run.TotalOutputLineCount);
46 references to ProcessResult
Aspire.Hosting (29)
ApplicationModel\ProjectResource.cs (1)
248
var
result = await pendingResult.WaitAsync(cancellationToken).ConfigureAwait(false);
Dcp\DcpDependencyCheck.cs (2)
53
Task<
ProcessResult
> task;
74
ProcessResult
processResult;
Dcp\Process\IProcessRunner.cs (2)
14
(Task<
ProcessResult
>, IAsyncDisposable) Run(ProcessSpec processSpec);
22
public (Task<
ProcessResult
>, IAsyncDisposable) Run(ProcessSpec processSpec)
Dcp\Process\ProcessUtil.cs (3)
22
public static (Task<
ProcessResult
>, IAsyncDisposable) Run(ProcessSpec processSpec)
124
var processLifetimeTcs = new TaskCompletionSource<
ProcessResult
>();
232
private static
ProcessResult
CreateProcessResult(int exitCode, ProcessOutputCapture? outputCapture)
Publishing\ContainerRuntimeBase.cs (10)
355
var
processResult = await pendingProcessResult
400
var
processResult = await pendingProcessResult
440
var
processResult = await ExecuteContainerCommandWithResultAsync(
508
protected async Task<
ProcessResult
> ExecuteContainerCommandWithResultAsync(
532
var
processResult = await pendingProcessResult
590
ProcessResult
processResult;
675
var
processResult = await pendingProcessResult
734
var
processResult = await pendingProcessResult
785
var
processResult = await pendingProcessResult
916
var
result = await pendingResult.ConfigureAwait(false);
Publishing\DockerContainerRuntime.cs (2)
101
var
processResult = await ExecuteContainerCommandWithResultAsync(
197
var
processResult = await ExecuteContainerCommandWithResultAsync(
Publishing\PodmanContainerRuntime.cs (3)
63
var
processResult = await pendingProcessResult
209
var
processResult = await ExecuteContainerCommandWithResultAsync(
241
var
processResult = await ExecuteContainerCommandWithResultAsync(
Publishing\ResourceContainerImageManager.cs (1)
414
var
processResult = await pendingProcessResult
ResourceBuilderExtensions.cs (3)
3293
var
processResult = await pendingProcessResult.WaitAsync(context.CancellationToken).ConfigureAwait(false);
3461
private static async Task<ExecuteCommandResult> GetProcessCommandResultAsync(ExecuteCommandContext context, ProcessCommandSpec processCommandSpec,
ProcessResult
processResult, ProcessCommandOptions commandOptions)
3484
internal static ExecuteCommandResult GetDefaultProcessCommandResult(string executablePath,
ProcessResult
processResult, ProcessCommandOptions commandOptions)
Utils\DotnetSdkUtils.cs (1)
47
var
result = await task.ConfigureAwait(false);
VersionChecking\PackageFetcher.cs (1)
51
var
processResult = await pendingProcessResult
Aspire.Hosting.Blazor (2)
BlazorDotNetCliRunner.cs (2)
50
Task<
ProcessResult
> pendingResult;
63
var
result = await pendingResult.WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (10)
Dcp\ProcessUtilTests.cs (4)
38
var
result = await pendingProcessResult.WaitAsync(TimeSpan.FromSeconds(30));
74
var
processResult = await pendingProcessResult.WaitAsync(TimeSpan.FromSeconds(30));
100
var
result = await pendingProcessResult.WaitAsync(TimeSpan.FromSeconds(30));
160
var
result = await pendingProcessResult.WaitAsync(TimeSpan.FromSeconds(30));
Publishing\ContainerRuntimeBaseTests.cs (4)
412
private sealed class CapturingProcessRunner(IEnumerable<
ProcessResult
>? results = null) : IProcessRunner
414
private readonly Queue<
ProcessResult
> _results = new(results ?? []);
418
public (Task<
ProcessResult
>, IAsyncDisposable) Run(ProcessSpec processSpec)
421
var
result = _results.Count > 0 ? _results.Dequeue() : new ProcessResult(0);
WithProcessCommandTests.cs (2)
1319
processRunner.EnqueuePending(Task.FromException<
ProcessResult
>(new InvalidOperationException("process failed after start")));
1458
var pendingProcessResult = new TaskCompletionSource<
ProcessResult
>(TaskCreationOptions.RunContinuationsAsynchronously);
Aspire.Hosting.TestUtilities (5)
Utils\TestProcessRunner.cs (5)
60
public void EnqueuePending(Task<
ProcessResult
> processResult)
68
public (Task<
ProcessResult
>, IAsyncDisposable) Run(ProcessSpec processSpec)
107
var
processResult = new ProcessResult(run.ExitCode, processOutput, run.TotalOutputLineCount);
117
Task<
ProcessResult
>? PendingResult)
138
public static TestProcessRun Pending(Task<
ProcessResult
> pendingResult)