ProcessCommandResultContext
Class sealed net8.0
Context passed to callback to configure
ExecuteCommandResult when using ResourceBuilderExtensions.WithProcessCommand. namespace Aspire.Hosting.ApplicationModel;
public sealed class ProcessCommandResultContext{ // ...} 10 members
Constructors1
Section titled ConstructorsProperties8
Section titled PropertiesCancellationTokenget; initCancellationToken Gets the cancellation token.
ExitCodeget; initint Gets the process exit code.
Loggerget; initILogger Gets the logger for the command invocation.
Outputget; initIReadOnlyList<string> Gets the retained stdout and stderr output lines in the order observed by the process runner.
ProcessCommandSpecget; init Gets the process command specification used for the command invocation.
ResourceNameget; initstring Gets the name of the resource the command was configured on.
ServiceProviderget; initIServiceProvider Gets the service provider.
TotalOutputLineCountget; initint Gets the total number of stdout and stderr lines observed by the process runner.