Show / Hide Table of Contents

Class ShutdownAwaiterAppLifecycleBehavior

A shutdown awaiter application lifecycle behavior.

Inheritance
System.Object
Loggable
AppLifecycleBehaviorBase
ShutdownAwaiterAppLifecycleBehavior
Implements
ILoggable
IAppLifecycleBehavior
Inherited Members
AppLifecycleBehaviorBase.IAppLifecycleBehavior.BeforeAppInitializeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.AfterAppInitializeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.AfterAppInitializeAsync(IAppContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.BeforeAppFinalizeAsync(IContext, CancellationToken)
AppLifecycleBehaviorBase.BeforeAppFinalizeAsync(IAppContext, CancellationToken)
AppLifecycleBehaviorBase.IAppLifecycleBehavior.AfterAppFinalizeAsync(IContext, 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.Application
Assembly: Kephas.Application.dll
Syntax
[ProcessingPriority(Priority.Highest)]
public class ShutdownAwaiterAppLifecycleBehavior : AppLifecycleBehaviorBase, ILoggable, IAppLifecycleBehavior
Remarks

Makes sure that the shutdown awaiter has a chance to initialize before the application manager starts initializing the features. Sometimes the features and the behaviors order a shutdown (like a setup routine).

Constructors

| Improve this Doc View Source

ShutdownAwaiterAppLifecycleBehavior(IAppShutdownAwaiter)

Initializes a new instance of the ShutdownAwaiterAppLifecycleBehavior class.

Declaration
public ShutdownAwaiterAppLifecycleBehavior(IAppShutdownAwaiter awaiter)
Parameters
Type Name Description
IAppShutdownAwaiter awaiter

The awaiter.

Methods

| Improve this Doc View Source

AfterAppFinalizeAsync(IAppContext, CancellationToken)

Interceptor called after the application completes its asynchronous finalization.

Declaration
public override 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.

Overrides
AppLifecycleBehaviorBase.AfterAppFinalizeAsync(IAppContext, CancellationToken)
| Improve this Doc View Source

BeforeAppInitializeAsync(IAppContext, CancellationToken)

Interceptor called before the application starts its asynchronous initialization.

Declaration
public override 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.

Overrides
AppLifecycleBehaviorBase.BeforeAppInitializeAsync(IAppContext, CancellationToken)

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