10 references to StopResourceAsync
Aspire.Hosting (3)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
62
await orchestrator.
StopResourceAsync
(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
101
await orchestrator.
StopResourceAsync
(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
216
await Task.WhenAll(replicasToStop.Select(name => orchestrator.
StopResourceAsync
(name, context.CancellationToken))).ConfigureAwait(false);
Aspire.Hosting.Tests (7)
Dcp\ApplicationOrchestratorProxy.cs (1)
19
public Task StopResourceAsync(string resourceName, CancellationToken cancellationToken) => _orchestrator.
StopResourceAsync
(resourceName, cancellationToken);
DistributedApplicationTests.cs (6)
152
await orchestrator.
StopResourceAsync
(resourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
229
await orchestrator.
StopResourceAsync
(notStartedResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
436
await orchestrator.
StopResourceAsync
(notStartedResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
521
await orchestrator.
StopResourceAsync
(runningResourceEvent.ResourceId, token).DefaultTimeout(TestConstants.ExtraLongTimeoutTimeSpan);
1087
await orchestrator.
StopResourceAsync
(redisContainer.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
1124
await orchestrator.
StopResourceAsync
(serviceA.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);