예제 #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;
 }
예제 #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;
 }