Class OrchestrationAppLifecycleBehavior
An orchestration 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.Orchestration.Application
Assembly: Kephas.Orchestration.dll
Syntax
[ProcessingPriority(Priority.Low)]
public class OrchestrationAppLifecycleBehavior : AppLifecycleBehaviorBase, ILoggable, IAppLifecycleBehaviorConstructors
| Improve this Doc View SourceOrchestrationAppLifecycleBehavior(IAppRuntime, IMessageBroker)
Initializes a new instance of the OrchestrationAppLifecycleBehavior class.
Declaration
public OrchestrationAppLifecycleBehavior(IAppRuntime appRuntime, IMessageBroker messageBroker)Parameters
| Type | Name | Description | 
|---|---|---|
| IAppRuntime | appRuntime | The application runtime. | 
| IMessageBroker | messageBroker | The application event publisher. | 
Methods
| Improve this Doc View SourceAfterAppInitializeAsync(IAppContext, CancellationToken)
Interceptor called after the application completes its asynchronous initialization.
Declaration
public override Task AfterAppInitializeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
Overrides
| Improve this Doc View SourceBeforeAppFinalizeAsync(IAppContext, CancellationToken)
Interceptor called before the application starts its asynchronous finalization.
Declaration
public override Task BeforeAppFinalizeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
Overrides
Remarks
To interrupt finalization, simply throw any appropriate exception. Caution! Interrupting the finalization may cause the application to remain in an undefined state.