Skip to content
Docs Try Aspire
Docs Try

ProcessCommandResultContext Properties

Class Properties 8 members
Context passed to callback to configure ExecuteCommandResult when using ResourceBuilderExtensions.WithProcessCommand.
CancellationToken Section titled CancellationToken CancellationToken
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; }
Output Section titled Output IReadOnlyList<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; }
ResourceName Section titled ResourceName string
Gets the name of the resource the command was configured on.
public string ResourceName { get; init; }
ServiceProvider Section titled ServiceProvider IServiceProvider
Gets the service provider.
public IServiceProvider ServiceProvider { get; init; }
TotalOutputLineCount Section titled TotalOutputLineCount int
Gets the total number of stdout and stderr lines observed by the process runner.
public int TotalOutputLineCount { get; init; }