Watch Aspire live streamsDocsTry Aspire

ResourceCommandService

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

Methods

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