C# 클래스 wmib.Instance

Represent one instance of this bot
파일 보기 프로젝트 열기: benapetr/wikimedia-bot 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Hostname string
Instances Instance>.Dictionary
IsActive bool
Network Network
Nick string
Port int
PrimaryInstance Instance
Protocol WmIrcProtocol
TargetBuffer Instance>.Dictionary

공개 메소드들

메소드 설명
Connect ( ) : void
ConnectAllIrcInstances ( ) : void
CreateInstance ( string name, int port ) : Instance

Creates a new instance

Disconnect ( ) : void
GetInstance ( ) : Instance

Return instance with lowest number of channels

Init ( ) : void

Create this instance

Instance ( string name, int port ) : System

Creates a new bot instance but not connect it to IRC

Join ( ) : void

Join all channels

Kill ( ) : void
QueueSize ( ) : int
ShutDown ( ) : void

비공개 메소드들

메소드 설명
Exec ( ) : void
JoinAll ( ) : void

This is a private handler for channel joining, never call it directly, use Join() for that

메소드 상세

Connect() 공개 메소드

public Connect ( ) : void
리턴 void

ConnectAllIrcInstances() 공개 정적인 메소드

public static ConnectAllIrcInstances ( ) : void
리턴 void

CreateInstance() 공개 정적인 메소드

Creates a new instance
public static CreateInstance ( string name, int port ) : Instance
name string
port int
리턴 Instance

Disconnect() 공개 메소드

public Disconnect ( ) : void
리턴 void

GetInstance() 공개 정적인 메소드

Return instance with lowest number of channels
public static GetInstance ( ) : Instance
리턴 Instance

Init() 공개 메소드

Create this instance
public Init ( ) : void
리턴 void

Instance() 공개 메소드

Creates a new bot instance but not connect it to IRC
public Instance ( string name, int port ) : System
name string Name
port int Port
리턴 System

Join() 공개 메소드

Join all channels
public Join ( ) : void
리턴 void

Kill() 공개 정적인 메소드

public static Kill ( ) : void
리턴 void

QueueSize() 공개 메소드

public QueueSize ( ) : int
리턴 int

ShutDown() 공개 메소드

public ShutDown ( ) : void
리턴 void

프로퍼티 상세

Hostname 공개적으로 프로퍼티

Host for bouncer
public string Hostname
리턴 string

Instances 공개적으로 정적으로 프로퍼티

List of instances
public static Dictionary Instances
리턴 Instance>.Dictionary

IsActive 공개적으로 프로퍼티

If you need to permanently disconnect this instance, change this to false
public bool IsActive
리턴 bool

Network 공개적으로 프로퍼티

public Network,wmib Network
리턴 Network

Nick 공개적으로 프로퍼티

Nickname of this instance
public string Nick
리턴 string

Port 공개적으로 프로퍼티

Port for bouncer
public int Port
리턴 int

PrimaryInstance 공개적으로 정적으로 프로퍼티

public static Instance,wmib PrimaryInstance
리턴 Instance

Protocol 공개적으로 프로퍼티

public WmIrcProtocol,wmib Protocol
리턴 WmIrcProtocol

TargetBuffer 공개적으로 정적으로 프로퍼티

Targets of each instance This is used to remember the last instance that user was talking to in a private message so that we respond to user using the same instance and not primary one
public static Dictionary TargetBuffer
리턴 Instance>.Dictionary