ResourceCommandService

Handle
📦 Aspire.Hosting v17.0.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 | 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