Class AppLifecycleBehaviorBase
Base class for application lifecycle behaviors.
Inheritance
Inherited Members
Namespace: Kephas.Application
Assembly: Kephas.Application.dll
Syntax
public abstract class AppLifecycleBehaviorBase : Loggable, ILoggable, IAppLifecycleBehavior
Methods
| Improve this Doc View SourceAfterAppFinalizeAsync(IAppContext, CancellationToken)
Interceptor called after the application completes its asynchronous finalization.
Declaration
public virtual 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. |
AfterAppInitializeAsync(IAppContext, CancellationToken)
Interceptor called after the application completes its asynchronous initialization.
Declaration
public virtual Task AfterAppInitializeAsync(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. |
BeforeAppFinalizeAsync(IAppContext, CancellationToken)
Interceptor called before the application starts its asynchronous finalization.
Declaration
public virtual Task BeforeAppFinalizeAsync(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. |
Remarks
To interrupt finalization, simply throw any appropriate exception. Caution! Interrupting the finalization may cause the application to remain in an undefined state.
BeforeAppInitializeAsync(IAppContext, CancellationToken)
Interceptor called before the application starts its asynchronous initialization.
Declaration
public virtual 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. |
Remarks
To interrupt the application initialization, simply throw an appropriate exception.
Explicit Interface Implementations
| Improve this Doc View SourceIAppLifecycleBehavior.AfterAppFinalizeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous finalization.
Declaration
Task IAppLifecycleBehavior.AfterAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
IAppLifecycleBehavior.AfterAppInitializeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous initialization.
Declaration
Task IAppLifecycleBehavior.AfterAppInitializeAsync(IContext appContext, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous finalization.
Declaration
Task IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Remarks
To interrupt finalization, simply throw any appropriate exception. Caution! Interrupting the finalization may cause the application to remain in an undefined state.
IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous initialization.
Declaration
Task IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext appContext, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Remarks
To interrupt the application initialization, simply throw an appropriate exception.