6 references to ExecuteCommandAsync
Aspire.Hosting (2)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
220
var result = await resourceCommandService.
ExecuteCommandAsync
(request.ResourceName, request.CommandName, cancellationToken).ConfigureAwait(false);
Dashboard\DashboardServiceData.cs (1)
101
var result = await _resourceCommandService.
ExecuteCommandAsync
(resourceId, type, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (4)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
333
await app.ResourceCommands.
ExecuteCommandAsync
("redis", KnownResourceCommands.StopCommand);
ResourceCommandServiceTests.cs (3)
25
var result = await app.ResourceCommands.
ExecuteCommandAsync
("NotFoundResourceId", "NotFound");
48
var result = await app.ResourceCommands.
ExecuteCommandAsync
("myResource", "NotFound");
98
var result = await app.ResourceCommands.
ExecuteCommandAsync
("myResource", "mycommand");