Watch Aspire live streamsDocsTry Aspire

ResourceCommandService.executeCommandAsync

Method
📦 Aspire.Hosting v13.6.0
interface ResourceCommandService {
// ... omitted for brevity
executeCommandAsync(
resource: string | IResource,
commandName: string,
arguments?: Dict<string,string>,
cancellationToken?: cancellationToken): ExecuteCommandResult;
}

Signature

methodexecuteCommandAsync
Executes a command for the specified resource.
executeCommandAsync(
resource: string | IResource,
commandName: string,
arguments?: Dict<string,string>,
cancellationToken?: cancellationToken): ExecuteCommandResult
resourcestring | IResourceThe resource id or resource handle. A resource id can either exactly match the unique id of the resource or the displayed resource name if the resource name doesn't have duplicates.
commandNamestringThe command name.
argumentsDict<string,string>optionalThe optional invocation arguments supplied to the command callback.
cancellationTokencancellationTokenoptionalThe cancellation token.
ExecuteCommandResult

Defined on

This method is defined on the following type: