Esempio 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;
 }
Esempio 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;
 }