Class FeatureManagerBase
Base class for application initializers providing an initialization monitor.
Inheritance
Inherited Members
Namespace: Kephas.Application
Assembly: Kephas.Application.dll
Syntax
public abstract class FeatureManagerBase : Loggable, ILoggable, IFeatureManager, IAsyncInitializable, IAsyncFinalizableConstructors
| Improve this Doc View SourceFeatureManagerBase()
Initializes a new instance of the FeatureManagerBase class.
Declaration
protected FeatureManagerBase()Fields
| Improve this Doc View SourceFinalizationMonitor
The finalization monitor.
Declaration
protected readonly FinalizationMonitor<IFeatureManager> FinalizationMonitorField Value
| Type | Description | 
|---|---|
| FinalizationMonitor<IFeatureManager> | 
InitializationMonitor
The initialization monitor.
Declaration
protected readonly InitializationMonitor<IFeatureManager> InitializationMonitorField Value
| Type | Description | 
|---|---|
| InitializationMonitor<IFeatureManager> | 
Methods
| Improve this Doc View SourceFinalizeAsync(IAppContext, CancellationToken)
Finalizes the feature asynchronously.
Declaration
public Task FinalizeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
FinalizeCoreAsync(IAppContext, CancellationToken)
Finalizes the feature asynchronously.
Declaration
protected virtual Task FinalizeCoreAsync(IAppContext appContext, CancellationToken cancellationToken)Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
InitializeAsync(IAppContext, CancellationToken)
Initializes the feature asynchronously.
Declaration
public Task InitializeAsync(IAppContext appContext, CancellationToken cancellationToken = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
InitializeCoreAsync(IAppContext, CancellationToken)
Initializes the feature asynchronously.
Declaration
protected virtual Task InitializeCoreAsync(IAppContext appContext, CancellationToken cancellationToken)Parameters
| Type | Name | Description | 
|---|---|---|
| IAppContext | appContext | Context for the application. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. | 
Explicit Interface Implementations
| Improve this Doc View SourceIAsyncFinalizable.FinalizeAsync(IContext, CancellationToken)
Finalizes the service.
Declaration
Task IAsyncFinalizable.FinalizeAsync(IContext context, CancellationToken cancellationToken)Parameters
| Type | Name | Description | 
|---|---|---|
| IContext | context | An optional context for finalization. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | An asynchronous result. | 
IAsyncInitializable.InitializeAsync(IContext, CancellationToken)
Initializes the service asynchronously.
Declaration
Task IAsyncInitializable.InitializeAsync(IContext context, CancellationToken cancellationToken)Parameters
| Type | Name | Description | 
|---|---|---|
| IContext | context | An optional context for initialization. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | An awaitable task. |