Class InteractionFeatureLifecycleBehavior
An interaction feature lifecycle behavior notifying about FeatureStartingEvent, FeatureStartedEvent, FeatureStoppingEvent, and FeatureStoppedEvent.
Inherited Members
Namespace: Kephas.Application.Interaction
Assembly: Kephas.Application.dll
Syntax
[ProcessingPriority(Priority.Low)]
public class InteractionFeatureLifecycleBehavior : FeatureLifecycleBehaviorBase, ILoggable, IFeatureLifecycleBehavior
Constructors
| Improve this Doc View SourceInteractionFeatureLifecycleBehavior(IEventHub)
Initializes a new instance of the InteractionFeatureLifecycleBehavior class.
Declaration
public InteractionFeatureLifecycleBehavior(IEventHub eventHub)
Parameters
Type | Name | Description |
---|---|---|
IEventHub | eventHub | The event hub. |
Methods
| Improve this Doc View SourceAfterFinalizeAsync(IAppContext, FeatureManagerMetadata, CancellationToken)
Interceptor called after a feature completes its asynchronous finalization.
Declaration
public override Task AfterFinalizeAsync(IAppContext appContext, FeatureManagerMetadata serviceMetadata, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
FeatureManagerMetadata | serviceMetadata | The feature manager service metadata. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Overrides
| Improve this Doc View SourceAfterInitializeAsync(IAppContext, FeatureManagerMetadata, CancellationToken)
Interceptor called after a feature completes its asynchronous initialization.
Declaration
public override Task AfterInitializeAsync(IAppContext appContext, FeatureManagerMetadata serviceMetadata, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
FeatureManagerMetadata | serviceMetadata | The feature manager service metadata. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Overrides
| Improve this Doc View SourceBeforeFinalizeAsync(IAppContext, FeatureManagerMetadata, CancellationToken)
Interceptor called before a feature starts its asynchronous finalization.
Declaration
public override Task BeforeFinalizeAsync(IAppContext appContext, FeatureManagerMetadata serviceMetadata, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
FeatureManagerMetadata | serviceMetadata | The feature manager service metadata. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Overrides
| Improve this Doc View SourceBeforeInitializeAsync(IAppContext, FeatureManagerMetadata, CancellationToken)
Interceptor called before a feature starts its asynchronous initialization.
Declaration
public override Task BeforeInitializeAsync(IAppContext appContext, FeatureManagerMetadata serviceMetadata, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IAppContext | appContext | Context for the application. |
FeatureManagerMetadata | serviceMetadata | The feature manager service metadata. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The asynchronous result. |