C# 클래스 ManyConsole.ConsoleCommandDispatcher

파일 보기 프로젝트 열기: fschwiet/ManyConsole

공개 메소드들

메소드 설명
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