1 write to _applicationLifetime
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
48
_applicationLifetime
= (applicationLifetime as ApplicationLifetime)!;
9 references to _applicationLifetime
Microsoft.Extensions.Hosting (9)
Internal\Host.cs (9)
52
if (
_applicationLifetime
is null)
76
using (var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken,
_applicationLifetime
.ApplicationStopping))
148
_applicationLifetime
.NotifyStarted();
192
if (
_applicationLifetime
.ApplicationStopping.IsCancellationRequested && backgroundTask.IsCanceled && ex is OperationCanceledException)
203
_applicationLifetime
.StopApplication();
237
_applicationLifetime
.StopApplication();
257
_applicationLifetime
.StopApplication();
273
_applicationLifetime
.NotifyStopped();
445
private bool IsRunning =>
_applicationLifetime
.ApplicationStarted.IsCancellationRequested && !_hostStopped;