Interface IAsyncShutdownAction
The IAsyncShutdownAction describes modules that are called on shutdown
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public interface IAsyncShutdownAction : IShutdownModule, IModule
Methods
| Improve this Doc View SourceShutdownAsync(CancellationToken)
Perform a shutdown of whatever needs to be shutdown. Make sure this can be called multiple times, e.g. do nothing when it was already started.
Declaration
Task ShutdownAsync(CancellationToken token = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | token | CancellationToken |
Returns
| Type | Description |
|---|---|
| Task | Task |