Class InteractionApplicationLifecycleBehavior
An interaction application lifecycle behavior.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Application.Interaction
Assembly: Kephas.Core.dll
Syntax
[ProcessingPriority(Priority.High)]
public class InteractionApplicationLifecycleBehavior : IAppLifecycleBehavior
Constructors
| Improve this Doc View SourceInteractionApplicationLifecycleBehavior(IEventHub)
Initializes a new instance of the InteractionApplicationLifecycleBehavior class.
Declaration
public InteractionApplicationLifecycleBehavior(IEventHub eventHub)
Parameters
Type | Name | Description |
---|---|---|
IEventHub | eventHub | The event hub. |
Methods
| Improve this Doc View SourceAfterAppFinalizeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous finalization.
Declaration
public Task AfterAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken = default(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. |
AfterAppInitializeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous initialization.
Declaration
public Task AfterAppInitializeAsync(IContext appContext, CancellationToken cancellationToken = default(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 | The asynchronous result. |
BeforeAppFinalizeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous finalization.
Declaration
public Task BeforeAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken = default(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. |
BeforeAppInitializeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous initialization.
Declaration
public Task BeforeAppInitializeAsync(IContext appContext, CancellationToken cancellationToken = default(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 | The asynchronous result. |