Show / Hide Table of Contents

Class AppLifecycleBehaviorBase

Base class for application lifecycle behaviors.

Inheritance
System.Object
Loggable
AppLifecycleBehaviorBase
ShutdownAwaiterAppLifecycleBehavior
OrchestrationAppLifecycleBehavior
Implements
ILoggable
IAppLifecycleBehavior
Inherited Members
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.Application
Assembly: Kephas.Application.dll
Syntax
public abstract class AppLifecycleBehaviorBase : Loggable, ILoggable, IAppLifecycleBehavior

Methods

| Improve this Doc View Source

AfterAppFinalizeAsync(IAppContext, CancellationToken)

Interceptor called after the application completes its asynchronous finalization.

Declaration
public virtual Task AfterAppFinalizeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAppContext appContext

Context for the application.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A Task.

| Improve this Doc View Source

AfterAppInitializeAsync(IAppContext, CancellationToken)

Interceptor called after the application completes its asynchronous initialization.

Declaration
public virtual Task AfterAppInitializeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAppContext appContext

Context for the application.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A Task.

| Improve this Doc View Source

BeforeAppFinalizeAsync(IAppContext, CancellationToken)

Interceptor called before the application starts its asynchronous finalization.

Declaration
public virtual Task BeforeAppFinalizeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAppContext appContext

Context for the application.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A Task.

Remarks

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

| Improve this Doc View Source

BeforeAppInitializeAsync(IAppContext, CancellationToken)

Interceptor called before the application starts its asynchronous initialization.

Declaration
public virtual Task BeforeAppInitializeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAppContext appContext

Context for the application.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A Task.

Remarks

To interrupt the application initialization, simply throw an appropriate exception.

Explicit Interface Implementations

| Improve this Doc View Source

IAppLifecycleBehavior.AfterAppFinalizeAsync(IContext, CancellationToken)

Interceptor called after the application completes its asynchronous finalization.

Declaration
Task IAppLifecycleBehavior.AfterAppFinalizeAsync(IContext appContext, CancellationToken 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.

| Improve this Doc View Source

IAppLifecycleBehavior.AfterAppInitializeAsync(IContext, CancellationToken)

Interceptor called after the application completes its asynchronous initialization.

Declaration
Task IAppLifecycleBehavior.AfterAppInitializeAsync(IContext appContext, CancellationToken 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.

| Improve this Doc View Source

IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext, CancellationToken)

Interceptor called before the application starts its asynchronous finalization.

Declaration
Task IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext appContext, CancellationToken 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.

Remarks

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

| Improve this Doc View Source

IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext, CancellationToken)

Interceptor called before the application starts its asynchronous initialization.

Declaration
Task IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext appContext, CancellationToken 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.

Remarks

To interrupt the application initialization, simply throw an appropriate exception.

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