C# Class Isop.CommandLine.ControllerRecognizer

Mostrar archivo Open project: wallymathieu/isop

Private Properties

Property Type Description
FindMethodInfo Method

Public Methods

Method Description
ControllerRecognizer ( Controller controller, Configuration configuration, TypeContainer typeContainer, bool allowInferParameter = false ) : System

GetRecognizers ( string methodname ) : IEnumerable
Parse ( IEnumerable arg ) : ParsedMethod

Note that in order to register a converter you can use: TypeDescriptor.AddAttributes(typeof(AType), new TypeConverterAttribute(typeof(ATypeConverter)));

Parse ( Method methodInfo, ParsedArguments parsedArguments ) : ParsedMethod
ParseArgumentsAndMerge ( IEnumerable arg, ParsedArguments parsedArguments ) : ParsedArguments
ParseArgumentsAndMerge ( string actionName, string>.Dictionary arg, ParsedArguments parsedArguments ) : ParsedArguments
Recognize ( IEnumerable arg ) : bool
Recognize ( string controllerName, string actionName ) : bool

Private Methods

Method Description
FindMethodInfo ( IList arg ) : Method

Method Details

ControllerRecognizer() public method

public ControllerRecognizer ( Controller controller, Configuration configuration, TypeContainer typeContainer, bool allowInferParameter = false ) : System
controller Controller
configuration Configuration
typeContainer TypeContainer
allowInferParameter bool
return System

GetRecognizers() public method

public GetRecognizers ( string methodname ) : IEnumerable
methodname string
return IEnumerable

Parse() public method

Note that in order to register a converter you can use: TypeDescriptor.AddAttributes(typeof(AType), new TypeConverterAttribute(typeof(ATypeConverter)));
public Parse ( IEnumerable arg ) : ParsedMethod
arg IEnumerable
return ParsedMethod

Parse() public method

public Parse ( Method methodInfo, ParsedArguments parsedArguments ) : ParsedMethod
methodInfo Method
parsedArguments ParsedArguments
return ParsedMethod

ParseArgumentsAndMerge() public method

public ParseArgumentsAndMerge ( IEnumerable arg, ParsedArguments parsedArguments ) : ParsedArguments
arg IEnumerable
parsedArguments ParsedArguments
return ParsedArguments

ParseArgumentsAndMerge() public method

public ParseArgumentsAndMerge ( string actionName, string>.Dictionary arg, ParsedArguments parsedArguments ) : ParsedArguments
actionName string
arg string>.Dictionary
parsedArguments ParsedArguments
return ParsedArguments

Recognize() public method

public Recognize ( IEnumerable arg ) : bool
arg IEnumerable
return bool

Recognize() public method

public Recognize ( string controllerName, string actionName ) : bool
controllerName string
actionName string
return bool