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(); }
protected VoiceServer(IVoiceClientFactory <TClient, TIdentifier> factory, VoiceServerConfiguration configuration) : this(factory, configuration, JustAnotherVoiceChat.GetVoiceWrapper()) { }
public FakeVoiceServer(IVoiceClientFactory <IFakeVoiceClient, byte> factory, VoiceServerConfiguration configuration, IVoiceWrapper voiceWrapper = null) : base(factory, configuration, voiceWrapper) { }