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)
52if (_applicationLifetime is null) 76using (var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _applicationLifetime.ApplicationStopping)) 148_applicationLifetime.NotifyStarted(); 192if (_applicationLifetime.ApplicationStopping.IsCancellationRequested && backgroundTask.IsCanceled && ex is OperationCanceledException) 203_applicationLifetime.StopApplication(); 237_applicationLifetime.StopApplication(); 257_applicationLifetime.StopApplication(); 273_applicationLifetime.NotifyStopped(); 445private bool IsRunning => _applicationLifetime.ApplicationStarted.IsCancellationRequested && !_hostStopped;