C# Класс Squishy.Irc.Commands.Command

Basic Command Class, Inherit your Commands from here. Automatically creates one instance per IrcClient when the Class is loaded, using the default constructor.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Aliases string[]

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

Метод Описание
Process ( CmdTrigger trigger ) : void

Is called when the command is triggered (case-insensitive).

Защищенные методы

Метод Описание
Command ( ) : System

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.

OnFail ( CmdTrigger trigger ) : void

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this.

Is triggered when the processing throws an Exception.

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

Метод Описание
ExecutedNotify ( CmdTrigger trigger ) : void
FailNotify ( CmdTrigger trigger, Exception ex ) : void

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

Command() защищенный Метод

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.
protected Command ( ) : System
Результат System

OnFail() защищенный Метод

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this. Is triggered when the processing throws an Exception.
protected OnFail ( CmdTrigger trigger ) : void
trigger CmdTrigger
Результат void

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

Is called when the command is triggered (case-insensitive).
public abstract Process ( CmdTrigger trigger ) : void
trigger CmdTrigger
Результат void

Описание свойств

Aliases публичное свойство

All Aliases which can trigger the Process method of this Command.
public string[] Aliases
Результат string[]