Method ExecuteAsync
- Namespace
- Ploch.CommandLine.UseCases
- Assembly
- Ploch.CommandLine.UseCases.dll
ExecuteAsync(TRequest, CancellationToken)
Executes the use case asynchronously with the specified request and cancellation token.
Task<TResponse> ExecuteAsync(TRequest request, CancellationToken cancellationToken = default)
Parameters
requestTRequestThe request object containing the necessary data for the use case.
cancellationTokenCancellationTokenA token to monitor for cancellation requests. Defaults to None.
Returns
- Task<TResponse>
A task that represents the asynchronous operation. The task result contains the response of type
TResponse.