14 implementations of StopAsync
aspire (1)
Telemetry\AspireCliTelemetry.cs (1)
179public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Aspire.Hosting (3)
Dashboard\DashboardServiceHost.cs (1)
219async Task IHostedService.StopAsync(CancellationToken cancellationToken)
DistributedApplicationLifecycle.cs (1)
55public Task StopAsync(CancellationToken cancellationToken)
Orchestrator\OrchestratorHostService.cs (1)
44public async Task StopAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
116public async Task StopAsync(CancellationToken cancellationToken)
Aspire.Hosting.Tests (2)
AppHostSmokeTests.cs (1)
117public Task StopAsync(CancellationToken cancellationToken)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
116public async Task StopAsync(CancellationToken cancellationToken)
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationTestFactory.cs (1)
78public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.DataProtection (1)
Internal\DataProtectionHostedService.cs (1)
49public Task StopAsync(CancellationToken token) => Task.CompletedTask;
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostService.cs (1)
197public async Task StopAsync(CancellationToken cancellationToken)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationHostedService.cs (1)
39public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckPublisherHostedService.cs (1)
76public Task StopAsync(CancellationToken cancellationToken = default)
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
57public virtual async Task StopAsync(CancellationToken cancellationToken)
Nats.Backend (1)
Program.cs (1)
37public async Task StopAsync(CancellationToken cancellationToken)
9 references to StopAsync
Microsoft.AspNetCore.Hosting (1)
Internal\HostedServiceExecutor.cs (1)
33await service.StopAsync(token);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
272service.StopAsync(token)).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Abstractions (4)
BackgroundService.cs (1)
30/// <param name="stoppingToken">Triggered when <see cref="IHostedService.StopAsync(CancellationToken)"/> is called.</param>
IHostedLifecycleService.cs (3)
12/// <see cref="IHostedService.StopAsync(CancellationToken)"/>. 31/// Triggered before <see cref="IHostedService.StopAsync(CancellationToken)"/>. 38/// Triggered after <see cref="IHostedService.StopAsync(CancellationToken)"/>.
Microsoft.Extensions.Hosting.Testing (2)
FakeHostingExtensions.cs (1)
42await service.StopAsync(cancellationToken).ConfigureAwait(false);
HostTerminatorService.cs (1)
40/// <param name="stoppingToken">Triggered when <see cref="IHostedService.StopAsync(CancellationToken)"/> is called.</param>
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
32serviceMock.Setup(x => x.StopAsync(tokenSource.Token)).Returns(Task.CompletedTask);