Example #1
0
 public AsyncVoiceChannelRef(IVoiceChannel voiceChannel)
 {
     if (voiceChannel == null)
     {
         this.voiceChannel = null;
     }
     else
     {
         lock (voiceChannel)
         {
             this.voiceChannel = voiceChannel.AddRef() ? voiceChannel : null;
         }
     }
 }
Example #2
0
 public VoiceChannelRef(IVoiceChannel voiceChannel)
 {
     this.voiceChannel = voiceChannel.AddRef() ? voiceChannel : null;
     Alt.Module.CountUpRefForCurrentThread(voiceChannel);
 }
 public VoiceChannelRef(IVoiceChannel voiceChannel)
 {
     this.voiceChannel = voiceChannel.AddRef() ? voiceChannel : null;
 }