Skip to content
DocsTry Aspire
DocsTry

ProcessCommandResultContext Properties

ClassProperties8 members
Context passed to callback to configure ExecuteCommandResult when using ResourceBuilderExtensions.WithProcessCommand.
CancellationTokenSection titled CancellationTokenCancellationToken
Gets the cancellation token.
public CancellationToken CancellationToken { get; init; }
Gets the process exit code.
public int ExitCode { get; init; }
Gets the logger for the command invocation.
public ILogger Logger { get; init; }
OutputSection titled OutputIReadOnlyList<string>
Gets the retained stdout and stderr output lines in the order observed by the process runner.
public IReadOnlyList<string> Output { get; init; }
Gets the process command specification used for the command invocation.
public ProcessCommandSpec ProcessCommandSpec { get; init; }
ResourceNameSection titled ResourceNamestring
Gets the name of the resource the command was configured on.
public string ResourceName { get; init; }
ServiceProviderSection titled ServiceProviderIServiceProvider
Gets the service provider.
public IServiceProvider ServiceProvider { get; init; }
Gets the total number of stdout and stderr lines observed by the process runner.
public int TotalOutputLineCount { get; init; }