Class ModelAppLifecycleBehavior
Feature manager for the model.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Application
Assembly: Kephas.Model.dll
Syntax
[ProcessingPriority(Priority.High)]
public class ModelAppLifecycleBehavior : IAppLifecycleBehavior
Constructors
| Improve this Doc View SourceModelAppLifecycleBehavior(IModelSpaceProvider)
Initializes a new instance of the ModelAppLifecycleBehavior class.
Declaration
public ModelAppLifecycleBehavior(IModelSpaceProvider modelSpaceProvider)
Parameters
Type | Name | Description |
---|---|---|
IModelSpaceProvider | modelSpaceProvider | The model space provider. |
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. |