CommandLineArgsCallbackContext Properties
Class Properties 5 members
Represents a callback context for the list of command-line arguments associated with an executable resource.
Gets the list of command-line arguments.
public IList<object> Args { get; } 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; }Exceptions
InvalidOperationException Thrown when the EnvironmentCallbackContext was created without a specified resource. Remarks
This will be set to the resource in all cases where .NET Aspire invokes the callback.