Interface IAppShutdownAwaiter
Singleton application service contract for the service awaiting for the application shutdown signal.
Namespace: Kephas.Application
Assembly: Kephas.Application.dll
Syntax
[SingletonAppServiceContract]
public interface IAppShutdownAwaiter
Methods
| Improve this Doc View SourceWaitForShutdownSignalAsync(CancellationToken)
Waits for the shutdown signal asynchronously.
Declaration
Task<(IOperationResult result, AppShutdownInstruction instruction)> WaitForShutdownSignalAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | Optional. A token that allows processing to be cancelled. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<IOperationResult, AppShutdownInstruction>> | An asynchronous result that yields the shutdown result. |