C# Класс ManyConsole.ConsoleCommandDispatcher

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DispatchCommand() публичный статический Метод

public static DispatchCommand ( ManyConsole.ConsoleCommand command, string arguments, TextWriter consoleOut ) : int
command ManyConsole.ConsoleCommand
arguments string
consoleOut System.IO.TextWriter
Результат int

DispatchCommand() публичный статический Метод

public static DispatchCommand ( IEnumerable commands, string arguments, TextWriter consoleOut, bool skipExeInExpectedUsage = false ) : int
commands IEnumerable
arguments string
consoleOut System.IO.TextWriter
skipExeInExpectedUsage bool
Результат int

FindCommandsInAllLoadedAssemblies() публичный статический Метод

public static FindCommandsInAllLoadedAssemblies ( ) : IEnumerable
Результат IEnumerable

FindCommandsInAssembly() публичный статический Метод

public static FindCommandsInAssembly ( Assembly assembly ) : IEnumerable
assembly System.Reflection.Assembly
Результат IEnumerable

FindCommandsInSameAssemblyAs() публичный статический Метод

public static FindCommandsInSameAssemblyAs ( Type typeInSameAssembly ) : IEnumerable
typeInSameAssembly System.Type
Результат IEnumerable