Skip to content
Docs Try Aspire
Docs Try

ResourceCommandService

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

Methods

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