Interface IExecuteHandler
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Handles execution of the OnExecute/OnExecuteAsync method without reflection.
public interface IExecuteHandler
Properties
IsAsync
Whether this is an async handler (OnExecuteAsync vs OnExecute).
bool IsAsync { get; }
Property Value
Methods
InvokeAsync(object, CommandLineApplication, CancellationToken)
Invokes the execute method on the model.
Task<int> InvokeAsync(object model, CommandLineApplication app, CancellationToken cancellationToken)
Parameters
modelobjectThe model instance.
appCommandLineApplicationThe command line application.
cancellationTokenCancellationTokenA cancellation token.