11 references to StopResourceAsync
Aspire.Hosting (3)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
65
await orchestrator.
StopResourceAsync
(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
104
await orchestrator.
StopResourceAsync
(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
237
await Task.WhenAll(replicasToStop.Select(name => orchestrator.
StopResourceAsync
(name, context.CancellationToken))).ConfigureAwait(false);
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
246
await orchestrator.
StopResourceAsync
(dcpInstanceName, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (6)
DistributedApplicationTests.cs (6)
216
await orchestrator.
StopResourceAsync
(resourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
293
await orchestrator.
StopResourceAsync
(notStartedResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
588
await orchestrator.
StopResourceAsync
(notStartedResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
673
await orchestrator.
StopResourceAsync
(runningResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.ExtraLongTimeoutTimeSpan);
1231
await orchestrator.
StopResourceAsync
(redisContainer.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
1268
await orchestrator.
StopResourceAsync
(serviceA.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
Aspire.Hosting.TestUtilities (1)
Dcp\ApplicationOrchestratorProxy.cs (1)
19
public Task StopResourceAsync(string resourceName, CancellationToken cancellationToken) => _orchestrator.
StopResourceAsync
(resourceName, cancellationToken);