6 implementations of StopAsync
Aspire.Hosting (1)
DistributedApplication.cs (1)
596Task IHost.StopAsync(CancellationToken cancellationToken) => StopAsync(cancellationToken);
Aspire.Hosting.Testing (2)
DistributedApplicationFactory.cs (1)
626public async Task StopAsync(CancellationToken cancellationToken = default)
DistributedApplicationTestingBuilder.cs (1)
317public async Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore (1)
WebApplication.cs (1)
171public Task StopAsync(CancellationToken cancellationToken = default) =>
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
228public async Task StopAsync(CancellationToken cancellationToken = default)
Microsoft.Extensions.Hosting.Testing (1)
FakeHost.cs (1)
91public async Task StopAsync(CancellationToken cancellationToken = default)
28 references to StopAsync
aspire (1)
Program.cs (1)
769await app.StopAsync().ConfigureAwait(false);
Aspire.Confluent.Kafka.Tests (2)
OtelMetricsTests.cs (1)
112await host.StopAsync();
OtelTracesTests.cs (1)
117await host.StopAsync();
Aspire.Hosting (2)
DistributedApplication.cs (2)
443/// <inheritdoc cref="IHost.StopAsync" /> 446await _host.StopAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
630await innerHost.StopAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore (1)
WebApplication.cs (1)
172_host.StopAsync(cancellationToken);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Buffering\PerIncomingRequestLoggingBuilderExtensionsTests.cs (1)
158await host.StopAsync();
Latency\AcceptanceTests.cs (1)
79await host.StopAsync();
Logging\AcceptanceTests.cs (1)
176await host.StopAsync();
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
AcceptanceTests.cs (2)
77await host.StopAsync(); 104await host.StopAsync();
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
KubernetesProbesOptionsValidatorTests.cs (1)
84await host.StopAsync();
Microsoft.Extensions.Hosting (1)
HostOptions.cs (1)
17/// Gets or sets the default timeout for <see cref="IHost.StopAsync(CancellationToken)"/>.
Microsoft.Extensions.Hosting.Abstractions (3)
HostingAbstractionsHostExtensions.cs (2)
35await host.StopAsync(cts.Token).ConfigureAwait(false); 115await host.StopAsync(CancellationToken.None).ConfigureAwait(false);
IHostLifetime.cs (1)
23/// Called from <see cref="IHost.StopAsync(CancellationToken)"/> to indicate that the host is stopping and it's time to shut down.
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
51/// Asynchronously stops and shuts down the host. This method is called from <see cref="IHost.StopAsync(CancellationToken)" />.
Microsoft.Extensions.Hosting.Testing (3)
FakeHost.cs (2)
97await _host.StopAsync(cancellationTokenSource.Token).ConfigureAwait(false); 104await _host.StopAsync(linkedTokenSource.Token).ConfigureAwait(false);
HostTerminatorService.cs (1)
59await _host.StopAsync(combinedTokenSource.Token).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Testing.Tests (6)
FakeHostTests.cs (5)
106.Setup(x => x.StopAsync(It.Is<CancellationToken>(y => y != default))) 123.Setup(x => x.StopAsync(It.Is<CancellationToken>(y => y != tokenSource.Token))) 143.Setup(x => x.StopAsync(It.Is<CancellationToken>(y => y != cancellationTokenSource.Token))) 165hostMock.Setup(x => x.StopAsync(It.IsAny<CancellationToken>())).Returns(Task.CompletedTask); 178hostMock.Setup(x => x.StopAsync(It.IsAny<CancellationToken>())).Returns(Task.CompletedTask);
HostTerminatorServiceTests.cs (1)
37hostMock.Setup(x => x.StopAsync(It.IsAny<CancellationToken>())).Returns(Task.CompletedTask);
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
115/// Asynchronously stops and shuts down the host. This method is called from <see cref="IHost.StopAsync(CancellationToken)" />.