Skip to content
DocsTry Aspire
DocsTry

ResourceCommandService.executeCommandAsync

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

Signature

methodexecuteCommandAsync
Executes a command for the specified resource.
executeCommandAsync(
resource: IResource,
commandName: string,
arguments?: Dict<string,string>,
cancellationToken?: cancellationToken): ExecuteCommandResult
resourceIResource
commandNamestring
argumentsDict<string,string>optional
cancellationTokencancellationTokenoptional
ExecuteCommandResult

Defined on

This method is defined on the following type: