Skip to content
DocsTry Aspire
DocsTry

CommandLineArgsCallbackContext Properties

ClassProperties5 members
Represents a callback context for the list of command-line arguments associated with an executable resource.
ArgsSection titled ArgsIList<object>
Gets the list of command-line arguments.
public IList<object> Args { get; }
CancellationTokenSection titled CancellationTokenCancellationToken
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; }
InvalidOperationExceptionThrown when the CommandLineArgsCallbackContext was created without a specified resource.
This will be set to the resource in all cases where Aspire invokes the callback.