Interface IAsyncUseCase
Interface representing an asynchronous use case without input or output.
Namespace: Serenity.Global.Application.Interfaces
Assembly: Serenity.Global.Application.dll
Syntax
public interface IAsyncUseCase : IUseCase
Methods
ExecuteAsync(CancellationToken)
Executes the use case.
Declaration
Task ExecuteAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | Optional cancellation token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task |