C# 클래스 CommonServices.BasicCommandHandler

Provides a basic implementation for a CommandHandler. It manages the event registering in Start & Stop and the link to the Command Manager.
상속: IPlugin
파일 보기 프로젝트 열기: Invenietis/ck-certified

Private Properties

프로퍼티 타입 설명
StartListenCommandManager void
StopListenCommandManager void

공개 메소드들

메소드 설명
Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
Start ( ) : void
Stop ( ) : void
Teardown ( ) : void

보호된 메소드들

메소드 설명
OnCommandSending ( object sender, CommandSendingEventArgs e ) : void

Method reacting from Command Sending event. Here, you can parse the command you want to listen before the command is really launches and do some stuff about it.

OnCommandSent ( object sender, CommandSentEventArgs e ) : void

Method reacting from the Command Sent event. Here, you can parse the command you want to listen and do some stuff about it.

비공개 메소드들

메소드 설명
StartListenCommandManager ( ) : void

When the Optional CommandManager is set we listen its CommandSent event.

StopListenCommandManager ( ) : void

When the Optional CommandManager is unset we stop to listen its CommandSent event.

메소드 상세

OnCommandSending() 보호된 메소드

Method reacting from Command Sending event. Here, you can parse the command you want to listen before the command is really launches and do some stuff about it.
protected OnCommandSending ( object sender, CommandSendingEventArgs e ) : void
sender object
e CommandSendingEventArgs containing data about the command which /// is about to be send.
리턴 void

OnCommandSent() 보호된 메소드

Method reacting from the Command Sent event. Here, you can parse the command you want to listen and do some stuff about it.
protected OnCommandSent ( object sender, CommandSentEventArgs e ) : void
sender object
e CommandSentEventArgs containing data about the sent command.
리턴 void

Setup() 공개 메소드

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
리턴 bool

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

Teardown() 공개 메소드

public Teardown ( ) : void
리턴 void