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(); } }
private void Worker_VCWorkerCompletedEvent(VCWorker worker) { Workers.Remove(worker); }