Class ShutdownAwaiterAppLifecycleBehavior
A shutdown awaiter application lifecycle behavior.
Inherited Members
AppLifecycleBehaviorBase.IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext, CancellationToken)
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
Assembly: Kephas.Application.dll
Syntax
[ProcessingPriority(Priority.Highest)]
public class ShutdownAwaiterAppLifecycleBehavior : AppLifecycleBehaviorBase, ILoggable, IAppLifecycleBehavior
Remarks
Makes sure that the shutdown awaiter has a chance to initialize before the application manager starts initializing the features. Sometimes the features and the behaviors order a shutdown (like a setup routine).
Constructors
| Improve this Doc View SourceShutdownAwaiterAppLifecycleBehavior(IAppShutdownAwaiter)
Initializes a new instance of the ShutdownAwaiterAppLifecycleBehavior class.
Declaration
public ShutdownAwaiterAppLifecycleBehavior(IAppShutdownAwaiter awaiter)
Parameters
Type | Name | Description |
---|---|---|
IAppShutdownAwaiter | awaiter | The awaiter. |
Methods
| Improve this Doc View SourceAfterAppFinalizeAsync(IAppContext, CancellationToken)
Interceptor called after the application completes its asynchronous finalization.
Declaration
public override Task AfterAppFinalizeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Overrides
| Improve this Doc View SourceBeforeAppInitializeAsync(IAppContext, CancellationToken)
Interceptor called before the application starts its asynchronous initialization.
Declaration
public override Task BeforeAppInitializeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |