The IAsyncShutdownAction describes modules that are called on shutdown
public interface IAsyncShutdownAction : IShutdownModule, IModule
Methods| Improve this Doc View Source
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.
Task ShutdownAsync(CancellationToken token = null)