Interface IFeatureManager
Singleton service contract for managers of features within the application.
Inherited Members
Namespace: Kephas.Application
Assembly: Kephas.Application.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true, MetadataAttributes = new Type[]{typeof(FeatureInfoAttribute)})]
public interface IFeatureManager : IAsyncInitializable, IAsyncFinalizable
Remarks
An application feature is a functional area of the application. It supports initialization and finalization.
Methods
| Improve this Doc View SourceFinalizeAsync(IAppContext, CancellationToken)
Performs finalization tasks within the application feature boundary.
Declaration
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. |
InitializeAsync(IAppContext, CancellationToken)
Performs initialization tasks within the application feature boundary.
Declaration
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. |