Table of Contents

Class ExecuteMethodConvention

Namespace
McMaster.Extensions.CommandLineUtils.Conventions
Assembly
McMaster.Extensions.CommandLineUtils.dll

Sets a command handler to call a method named OnExecute or OnExecuteAsync on the model type of CommandLineApplication<TModel>.

public class ExecuteMethodConvention : IConvention
Inheritance
object
ExecuteMethodConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.