ActivatorUtilitiesConvention Class

Summary

Uses an instance of System.IServiceProvider to call constructors when creating models. Implements the McMaster.Extensions.CommandLineUtils.Conventions.IConvention
Assembly
Rocket.Surgery.Extensions.CommandLine.dll
Namespace
Rocket.Surgery.Extensions.CommandLine
Interfaces
  • IConvention
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IConvention"] Type["ActivatorUtilitiesConvention"] class Type type-node

Syntax

public class ActivatorUtilitiesConvention : IConvention

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
ActivatorUtilitiesConvention(IServiceProvider) Initializes a new instance of the ActivatorUtilitiesConvention class.

Fields

Name Constant Value Summary
AmbiguousOnExecuteMethod Could not determine which 'OnExecute' or 'OnExecuteAsync' method to use. Multiple methods with this name were found
The ambiguous on execute method
static
NoOnExecuteMethodFound No method named 'OnExecute' or 'OnExecuteAsync' could be found
The no on execute method found
static

Methods

Name Value Summary
Apply(ConventionContext) void
Apply the convention.
InvalidOnExecuteReturnType(string) string
Invalids the type of the on execute return.
static

Extension Methods

See Also

  • McMaster.Extensions.CommandLineUtils.Conventions.IConvention