Show / Hide Table of Contents

Class OrchestrationAppLifecycleBehavior

An orchestration application lifecycle behavior.

Inheritance
System.Object
Loggable
AppLifecycleBehaviorBase
OrchestrationAppLifecycleBehavior
Implements
ILoggable
IAppLifecycleBehavior
Inherited Members
AppLifecycleBehaviorBase.IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.BeforeAppInitializeAsync(IAppContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.AfterAppInitializeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.AfterAppFinalizeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.AfterAppFinalizeAsync(IAppContext, CancellationToken)
Loggable.Logger
Loggable.GetLogger()
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, IAppLifecycleBehavior

Constructors

| Improve this Doc View Source

OrchestrationAppLifecycleBehavior(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 Source

AfterAppInitializeAsync(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
AppLifecycleBehaviorBase.AfterAppInitializeAsync(IAppContext, CancellationToken)
| Improve this Doc View Source

BeforeAppFinalizeAsync(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
AppLifecycleBehaviorBase.BeforeAppFinalizeAsync(IAppContext, CancellationToken)
Remarks

To interrupt finalization, simply throw any appropriate exception. Caution! Interrupting the finalization may cause the application to remain in an undefined state.

Implements

ILoggable
IAppLifecycleBehavior

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX