Class PreserveCultureThreadContextAppLifecycleBehavior
Feature manager configuring the ThreadContextAwaiter to preserve the thread culture.
Inheritance
System.Object
PreserveCultureThreadContextAppLifecycleBehavior
Implements
Inherited Members
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.Core.dll
Syntax
[ProcessingPriority(Priority.Highest)]
public class PreserveCultureThreadContextAppLifecycleBehavior : IAppLifecycleBehavior
Methods
| Improve this Doc View SourceAfterAppFinalizeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous finalization.
Declaration
public Task AfterAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
AfterAppInitializeAsync(IContext, CancellationToken)
Interceptor called after the application completes its asynchronous initialization.
Declaration
public Task AfterAppInitializeAsync(IContext appContext, CancellationToken cancellationToken = default(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 | The asynchronous result. |
BeforeAppFinalizeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous finalization.
Declaration
public Task BeforeAppFinalizeAsync(IContext appContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | appContext | Context for the application. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
BeforeAppInitializeAsync(IContext, CancellationToken)
Interceptor called before the application starts its asynchronous initialization.
Declaration
public Task BeforeAppInitializeAsync(IContext appContext, CancellationToken cancellationToken = default(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 | The asynchronous result. |