internal static IVoiceWrapper GetVoiceWrapper() { if (_voiceWrapper == null) { _voiceWrapper = new VoiceWrapper(); } return(_voiceWrapper); }
internal VoiceServer(IVoiceClientFactory <TClient, TIdentifier> factory, VoiceServerConfiguration configuration, IVoiceWrapper voiceWrapper) { _factory = factory ?? throw new ArgumentNullException(nameof(factory)); NativeWrapper = voiceWrapper ?? throw new ArgumentNullException(nameof(voiceWrapper)); Configuration = configuration; NativeWrapper.CreateNativeServer(configuration); AttachToNativeEvents(); AttachTasksToStartAndStopEvent(); }
public FakeVoiceServer(IVoiceClientFactory <IFakeVoiceClient, byte> factory, VoiceServerConfiguration configuration, IVoiceWrapper voiceWrapper = null) : base(factory, configuration, voiceWrapper) { }