Interface IAsyncFinalizable
Provides the FinalizeAsync(IContext, CancellationToken) method for service asynchronous finalization.
Namespace: Kephas.Services
Assembly: Kephas.Core.dll
Syntax
public interface IAsyncFinalizable
Methods
| Improve this Doc View SourceFinalizeAsync(IContext, CancellationToken)
Finalizes the service.
Declaration
Task FinalizeAsync(IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| IContext | context | Optional. An optional context for finalization. |
| System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | An asynchronous result. |