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