Interface IAsyncInitializable
Provides the InitializeAsync(IContext, CancellationToken) method for asynchronous service initialization.
Namespace: Kephas.Services
Assembly: Kephas.Core.dll
Syntax
public interface IAsyncInitializable
Methods
| Improve this Doc View SourceInitializeAsync(IContext, CancellationToken)
Initializes the service asynchronously.
Declaration
Task InitializeAsync(IContext context = null, CancellationToken cancellationToken = default(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. |