Table of Contents

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

request TRequest

The request object containing the necessary data for the use case.

cancellationToken CancellationToken

A 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.