Ejemplo n.º 1
0
 public async Task AddWorkerToChannel(IVoiceChannel channel)
 {
     if (!ChannelHasWorker(channel))
     {
         VCWorker worker = new VCWorker(channel);
         worker.VCWorkerCompletedEvent += Worker_VCWorkerCompletedEvent;
         worker.AwardVCPointsEvent     += Worker_AwardVCPointsEvent;
         Workers.Add(worker);
         worker.Start();
     }
 }
Ejemplo n.º 2
0
 private void Worker_VCWorkerCompletedEvent(VCWorker worker)
 {
     Workers.Remove(worker);
 }