6 references to ExecuteCommandAsync
Aspire.Hosting (2)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
219
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)
332
await app.ResourceCommands.
ExecuteCommandAsync
("redis", KnownResourceCommands.StopCommand);
ResourceCommandServiceTests.cs (3)
24
var result = await app.ResourceCommands.
ExecuteCommandAsync
("NotFoundResourceId", "NotFound");
47
var result = await app.ResourceCommands.
ExecuteCommandAsync
("myResource", "NotFound");
97
var result = await app.ResourceCommands.
ExecuteCommandAsync
("myResource", "mycommand");