C# Class Tectil.NCommand.CommandLookup

Command lookup through reflection. Searching for methods with CommandAttribute.
Inheritance: ICommandLookup
Show file Open project: tectil/NCommand

Public Methods

Method Description
CommandLookup ( Tectil.NCommand.CommandConfiguration configuration ) : System

Initializes a new instance of the CommandLookup class.

GetCommand ( string name ) : CommandInfo

Get command.

GetMethode ( CommandInfo command ) : Tuple

Gets the methode.

Private Methods

Method Description
GetCommands ( ) : IEnumerable>

Method Details

CommandLookup() public method

Initializes a new instance of the CommandLookup class.
public CommandLookup ( Tectil.NCommand.CommandConfiguration configuration ) : System
configuration Tectil.NCommand.CommandConfiguration Configuration
return System

GetCommand() public method

Get command.
public GetCommand ( string name ) : CommandInfo
name string
return Tectil.NCommand.Contract.CommandInfo

GetMethode() public method

Gets the methode.
public GetMethode ( CommandInfo command ) : Tuple
command Tectil.NCommand.Contract.CommandInfo The command.
return Tuple