Click or drag to resize

IShutdownService Properties

The IShutdownService type exposes the following members.

Properties
 NameDescription
Public propertyCurrentReasonPreventingShutdown Gets the current reason that prevents shutdown. If there isn't any reason, returns null. If there are multiple reasons, only one of them is returned.
Public propertyDelayedShutdownToken Gets a cancellation token that gets signalled a couple of seconds after the ShutdownToken. This cancellation token may be used to stop background calculations that should run for a limited time after the application is closed (e.g. saving state in caches - work that should better run even though we're shutting down, but shouldn't take too long either)
Public propertyIsApplicationClosing Gets a value indicating whether the application is closing.
Public propertyShutdownToken Gets a cancellation token that gets signalled when the application is shutting down. This cancellation token may be used to stop background calculations.
Top
See Also