C# 클래스 AdvancedLauncher.SDK.Management.Commands.AbstractExtendedCommand

Extended ICommand base implementation with subcommands support
상속: AbstractCommand
파일 보기 프로젝트 열기: GoldRenard/DMOAdvancedLauncher

공개 메소드들

메소드 설명
AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic

Main constructor

DoCommand ( string args ) : bool

Root command action

보호된 메소드들

메소드 설명
CheckSubCommand ( string command ) : bool

Checks if specified command defined in subcommands list

CreateCommands ( ) : SubCommand>.Dictionary

Subcommand generation method. You must define your subcommands here.

GetCommandList ( ) : List

Returns help list of all available subcommands

LogInfo ( string value ) : void

You must define console output method here (usually ILogManager.Info(object))

비공개 메소드들

메소드 설명
CheckInput ( string args ) : bool

Input validation

HelpCommand ( string args ) : bool

Prints help

메소드 상세

AbstractExtendedCommand() 공개 메소드

Main constructor
public AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic
commandName string Base command name to execute. See
commandDescription string Command description. See
리턴 System.Collections.Generic

CheckSubCommand() 보호된 메소드

Checks if specified command defined in subcommands list
protected CheckSubCommand ( string command ) : bool
command string Command name
리턴 bool

CreateCommands() 보호된 추상적인 메소드

Subcommand generation method. You must define your subcommands here.
protected abstract CreateCommands ( ) : SubCommand>.Dictionary
리턴 SubCommand>.Dictionary

DoCommand() 공개 메소드

Root command action
public DoCommand ( string args ) : bool
args string Input arguments
리턴 bool

GetCommandList() 보호된 메소드

Returns help list of all available subcommands
protected GetCommandList ( ) : List
리턴 List

LogInfo() 보호된 추상적인 메소드

You must define console output method here (usually ILogManager.Info(object))
protected abstract LogInfo ( string value ) : void
value string Value you want to log
리턴 void