Table of Contents

Interface IExecuteHandler<TModel>

Namespace
McMaster.Extensions.CommandLineUtils.SourceGeneration
Assembly
McMaster.Extensions.CommandLineUtils.dll

Strongly-typed handler for executing the OnExecute/OnExecuteAsync method.

public interface IExecuteHandler<TModel> : IExecuteHandler where TModel : class

Type Parameters

TModel

The 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

model TModel

The model instance.

app CommandLineApplication

The command line application.

cancellationToken CancellationToken

A cancellation token.

Returns

Task<int>

The exit code.