14 implementations of ApplicationStopping
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
157public CancellationToken ApplicationStopping { get; }
Aspire.Hosting.Tests (3)
Dashboard\DashboardLifecycleHookTests.cs (1)
186public CancellationToken ApplicationStopping { get; }
ResourceNotificationTests.cs (1)
404public CancellationToken ApplicationStopping { get; }
Utils\TestHostApplicationLifetime.cs (1)
12public CancellationToken ApplicationStopping { get; }
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
28public CancellationToken ApplicationStopping
Microsoft.AspNetCore.Hosting (1)
Internal\ApplicationLifetime.cs (1)
40public CancellationToken ApplicationStopping => _stoppingSource.Token;
Microsoft.AspNetCore.Http.Connections.Tests (2)
ApplicationLifetime.cs (2)
18public CancellationToken ApplicationStopping => _stoppingSource.Token; 37public CancellationToken ApplicationStopping => CancellationToken.None;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
28public CancellationToken ApplicationStopping
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
90public CancellationToken ApplicationStopping { get; }
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
MockHostApplicationLifetime.cs (1)
18public CancellationToken ApplicationStopping { get; }
Microsoft.Extensions.Hosting (1)
Internal\ApplicationLifetime.cs (1)
45public CancellationToken ApplicationStopping => _stoppingSource.Token;
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
28public CancellationToken ApplicationStopping
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
28public CancellationToken ApplicationStopping
34 references to ApplicationStopping
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (2)
46_applicationStopping = hostApplicationLifetime?.ApplicationStopping ?? throw new ArgumentNullException(nameof(hostApplicationLifetime)); 61_applicationStopping = hostApplicationLifetime?.ApplicationStopping ?? throw new ArgumentNullException(nameof(hostApplicationLifetime));
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
70var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Hosting.Tests (1)
Utils\LoggerNotificationExtensions.cs (1)
70var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
70var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
IIS.Tests (1)
Utilities\TestServer.cs (1)
168lifetime.ApplicationStopping.Register(() => doneEvent.Set());
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostApplicationLifetime.cs (1)
19public CancellationToken ApplicationStopping => _applicationLifetime.ApplicationStopping;
WebHostExtensions.cs (1)
162await Task.Delay(Timeout.Infinite, applicationLifetime.ApplicationStopping)
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostTests.cs (3)
328lifetime.ApplicationStopping.Register(() => 436var stopping = RegisterCallbacksThatThrow(applicationLifetime.ApplicationStopping); 686var stopping = RegisterCallbacksThatThrow(applicationLifetime.ApplicationStopping);
Microsoft.AspNetCore.Hosting.TestSites (1)
StartupShutdown.cs (1)
20lifetime.ApplicationStopping.Register(() =>
Microsoft.AspNetCore.Hosting.WindowsServices (1)
WebHostService.cs (1)
50.ApplicationStopping
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
40appLifetime.ApplicationStopping.Register(CloseConnections);
Microsoft.AspNetCore.Server.IISIntegration.Tests (4)
IISMiddlewareTests.cs (4)
118appLifetime.ApplicationStopping.Register(() => applicationStoppingFired.SetResult()); 177appLifetime.ApplicationStopping.Register(() => applicationStoppingFired.SetResult()); 222appLifetime.ApplicationStopping.Register(() => applicationStoppingFired.SetResult()); 267appLifetime.ApplicationStopping.Register(() => applicationStoppingFired.SetResult());
Microsoft.AspNetCore.SpaProxy (4)
SpaProxyLaunchManager.cs (1)
30appLifetime.ApplicationStopping.Register(() => Dispose(true));
SpaProxyMiddleware.cs (1)
58_spaProxyLaunchManager.StartInBackground(_hostLifetime.ApplicationStopping);
SpaProxyStartupFilter.cs (2)
40if (!await _spaProxyLaunchManager.IsSpaProxyRunning(_hostLifetime.ApplicationStopping)) 42_spaProxyLaunchManager.StartInBackground(_hostLifetime.ApplicationStopping);
Microsoft.AspNetCore.SpaServices.Extensions (5)
AngularCli\AngularCliBuilder.cs (1)
49var applicationStoppingToken = appBuilder.ApplicationServices.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping;
AngularCli\AngularCliMiddleware.cs (1)
38var applicationStoppingToken = appBuilder.ApplicationServices.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping;
Proxying\ConditionalProxyMiddleware.cs (1)
40_applicationStoppingToken = applicationLifetime.ApplicationStopping;
Proxying\SpaProxyingExtensions.cs (1)
87return applicationLifetime.ApplicationStopping;
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
38var applicationStoppingToken = appBuilder.ApplicationServices.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping;
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ApplicationLifecycleHealthCheck.cs (1)
52bool isStopping = _appLifetime.ApplicationStopping.IsCancellationRequested;
Microsoft.Extensions.Hosting (1)
Internal\ConsoleLifetime.cs (1)
85_applicationStoppingRegistration = ApplicationLifetime.ApplicationStopping.Register(state =>
Microsoft.Extensions.Hosting.Abstractions (1)
HostingAbstractionsHostExtensions.cs (1)
101await Task.Delay(Timeout.Infinite, applicationLifetime.ApplicationStopping).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
80_applicationStoppingRegistration = ApplicationLifetime.ApplicationStopping.Register(state =>
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetime.cs (3)
83ApplicationLifetime.ApplicationStopping.Register(() => 145/// Triggers <see cref="IHostApplicationLifetime.ApplicationStopping"/> and waits for <see cref="IHostApplicationLifetime.ApplicationStopped"/>. 161/// Triggers <see cref="IHostApplicationLifetime.ApplicationStopping"/> and waits for <see cref="IHostApplicationLifetime.ApplicationStopped"/>.