Class AspNetAppShutdownAwaiter
An ASP net application shutdown awaiter.
Inheritance
System.Object
AspNetAppShutdownAwaiter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.AspNetCore.Application
Assembly: Kephas.Application.AspNetCore.dll
Syntax
public class AspNetAppShutdownAwaiter : IAppShutdownAwaiter
Methods
| Improve this Doc View SourceWaitForShutdownSignalAsync(CancellationToken)
Waits for the application termination asynchronously.
Declaration
public 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 termination result. |