C# Class Squishy.Irc.Protocol.IrcProtocol

Mostra file Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Public Methods

Method Description
AddPacketHandler ( string key, PacketHandler handler ) : void

Adds a new packet handler for a certain action.

GetOrCreateHandlers ( string key ) : IList
RemovePacketHandler ( string key, PacketHandler handler ) : bool

Removes the packet handler for a certain action.

this ( string key ) : IList

Protected Methods

Method Description
IrcProtocol ( ) : System

Create a singleton instance.

Private Methods

Method Description
SetupHandlers ( ) : void

Method Details

AddPacketHandler() public method

Adds a new packet handler for a certain action.
public AddPacketHandler ( string key, PacketHandler handler ) : void
key string
handler PacketHandler
return void

GetOrCreateHandlers() public method

public GetOrCreateHandlers ( string key ) : IList
key string
return IList

IrcProtocol() protected method

Create a singleton instance.
protected IrcProtocol ( ) : System
return System

RemovePacketHandler() public method

Removes the packet handler for a certain action.
public RemovePacketHandler ( string key, PacketHandler handler ) : bool
key string
handler PacketHandler
return bool

this() public method

public this ( string key ) : IList
key string
return IList