Exemplo n.º 1
0
 // Empty constructor makes instance of Thread
 public ChatGetter(IRCClient irc, int sleepTime)
 {
     _irc           = irc;
     chatGetter     = new Thread(new ThreadStart(this.Run));
     messages       = new List <string>();
     this.sleepTime = sleepTime;
 }
Exemplo n.º 2
0
 // Empty constructor makes instance of Thread
 public PingSender(IRCClient irc, int threadSleepTime)
 {
     _irc           = irc;
     pingSender     = new Thread(new ThreadStart(this.Run));
     this.sleepTime = threadSleepTime;
 }