Interface IUseCase<TRequest, TResponse>
- Namespace
- Ploch.CommandLine.UseCases
- Assembly
- Ploch.CommandLine.UseCases.dll
Defines a use case with a request and response.
public interface IUseCase<in TRequest, TResponse>
Type Parameters
TRequestThe type of the request.
TResponseThe type of the response.
Methods
- ExecuteAsync(TRequest, CancellationToken)
Executes the use case asynchronously with the specified request and cancellation token.