Interface IExecuteHandler<TModel>
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Strongly-typed handler for executing the OnExecute/OnExecuteAsync method.
public interface IExecuteHandler<TModel> : IExecuteHandler where TModel : class
Type Parameters
TModelThe model type.
- Inherited Members
Methods
InvokeAsync(TModel, CommandLineApplication, CancellationToken)
Invokes the execute method on the model.
Task<int> InvokeAsync(TModel model, CommandLineApplication app, CancellationToken cancellationToken)
Parameters
modelTModelThe model instance.
appCommandLineApplicationThe command line application.
cancellationTokenCancellationTokenA cancellation token.