C# Class CommonServices.BasicCommandHandler

Provides a basic implementation for a CommandHandler. It manages the event registering in Start & Stop and the link to the Command Manager.
Inheritance: IPlugin
Afficher le fichier Open project: Invenietis/ck-certified

Private Properties

Свойство Type Description
StartListenCommandManager void
StopListenCommandManager void

Méthodes publiques

Méthode Description
Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
Start ( ) : void
Stop ( ) : void
Teardown ( ) : void

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

OnCommandSending() protected méthode

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.
Résultat void

OnCommandSent() protected méthode

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.
Résultat void

Setup() public méthode

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
Résultat bool

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Teardown() public méthode

public Teardown ( ) : void
Résultat void