Skip to content
Docs Try Aspire

CommandLineArgsCallbackContext Properties

Class Properties 5 members
Represents a callback context for the list of command-line arguments associated with an executable resource.
Args Section titled Args IList<object>
Gets the list of command-line arguments.
public IList<object> Args { get; }
CancellationToken Section titled CancellationToken CancellationToken
Gets the cancellation token associated with the callback context.
public CancellationToken CancellationToken { get; }
Gets or sets the execution context for the distributed application.
public DistributedApplicationExecutionContext ExecutionContext { get; init; }
Gets or sets the logger for the distributed application.
public ILogger Logger { get; init; }
The resource associated with this callback context.
public IResource Resource { get; }
InvalidOperationException Thrown when the EnvironmentCallbackContext was created without a specified resource.
This will be set to the resource in all cases where .NET Aspire invokes the callback.