Beispiel #1
0
        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();
        }
Beispiel #3
0
 public FakeVoiceServer(IVoiceClientFactory <IFakeVoiceClient, byte> factory, VoiceServerConfiguration configuration, IVoiceWrapper voiceWrapper = null) : base(factory, configuration, voiceWrapper)
 {
 }