C# Class ManyConsole.ConsoleCommandDispatcher

Afficher le fichier Open project: fschwiet/ManyConsole

Méthodes publiques

Méthode Description
DispatchCommand ( ManyConsole.ConsoleCommand command, string arguments, TextWriter consoleOut ) : int
DispatchCommand ( IEnumerable commands, string arguments, TextWriter consoleOut, bool skipExeInExpectedUsage = false ) : int
FindCommandsInAllLoadedAssemblies ( ) : IEnumerable
FindCommandsInAssembly ( Assembly assembly ) : IEnumerable
FindCommandsInSameAssemblyAs ( Type typeInSameAssembly ) : IEnumerable

Private Methods

Méthode Description
CheckRemainingArguments ( List remainingArguments, int parametersRequiredAfterOptions ) : void
DealWithException ( Exception e, TextWriter console, bool skipExeInExpectedUsage, ManyConsole.ConsoleCommand selectedCommand, IEnumerable commands ) : int
GetMatchingCommand ( IEnumerable command, string name ) : ManyConsole.ConsoleCommand
ValidateConsoleCommand ( ManyConsole.ConsoleCommand command ) : void

Method Details

DispatchCommand() public static méthode

public static DispatchCommand ( ManyConsole.ConsoleCommand command, string arguments, TextWriter consoleOut ) : int
command ManyConsole.ConsoleCommand
arguments string
consoleOut System.IO.TextWriter
Résultat int

DispatchCommand() public static méthode

public static DispatchCommand ( IEnumerable commands, string arguments, TextWriter consoleOut, bool skipExeInExpectedUsage = false ) : int
commands IEnumerable
arguments string
consoleOut System.IO.TextWriter
skipExeInExpectedUsage bool
Résultat int

FindCommandsInAllLoadedAssemblies() public static méthode

public static FindCommandsInAllLoadedAssemblies ( ) : IEnumerable
Résultat IEnumerable

FindCommandsInAssembly() public static méthode

public static FindCommandsInAssembly ( Assembly assembly ) : IEnumerable
assembly System.Reflection.Assembly
Résultat IEnumerable

FindCommandsInSameAssemblyAs() public static méthode

public static FindCommandsInSameAssemblyAs ( Type typeInSameAssembly ) : IEnumerable
typeInSameAssembly System.Type
Résultat IEnumerable