Skip to content
Docs Try Aspire
Docs Try

ExecuteCommandContext Properties

Class Properties 5 members
Gets the invocation arguments supplied by the client when the command is executed.
public InteractionInputCollection Arguments { get; init; }

The collection contains the arguments described by ResourceCommandAnnotation.Arguments with their submitted values populated. CLI positional arguments are mapped by declaration order. Dashboard, MCP, and other named-payload clients are mapped by InteractionInput.Name.

CancellationToken Section titled CancellationToken CancellationToken
The cancellation token.
public CancellationToken CancellationToken { get; init; }
The logger for the resource.
public ILogger Logger { get; init; }
ResourceName Section titled ResourceName string
The resource name.
public string ResourceName { get; init; }
ServiceProvider Section titled ServiceProvider IServiceProvider
The service provider.
public IServiceProvider ServiceProvider { get; init; }