applicationStopped property
Triggered when the application host is performing a graceful shutdown. All requests should be complete at this point. Shutdown will block until this event completes.
Implementation
@override
CancellationToken get applicationStopped => _stoppedSource.token;