Exemple #1
0
        private AppModel()
        {
            RegisterForRestart();
            RegisterRecovery();
            _notificationManager = new NotificationManager(this);

            _deviceCyclerManager = new DeviceCyclerManager();
        }
Exemple #2
0
        private AppModel()
        {
            RegisterForRestart();
            RegisterRecovery();
            _notificationManager = new NotificationManager(this);

            _deviceCyclerManager = new DeviceCyclerManager();
            MMNotificationClient.Instance.DefaultDeviceChanged += (sender, @event) => { _dispatcher.Debounce(250, o => { DefaultDeviceChanged?.Invoke(sender, @event); }); };
        }
Exemple #3
0
 private AppModel()
 {
     using (AppLogger.Log.DebugCall())
     {
         RegisterForRestart();
         RegisterRecovery();
         _notificationManager = new NotificationManager(this);
     }
     _deviceCyclerManager = new DeviceCyclerManager();
 }
Exemple #4
0
 private AppModel()
 {
     using (AppLogger.Log.DebugCall())
     {
         RegisterForRestart();
         RegisterRecovery();
         _notificationManager = new NotificationManager(this);
     }
     _deviceCyclerManager = new DeviceCyclerManager();
 }
Exemple #5
0
        private AppModel()
        {
            _notificationManager = new NotificationManager(this);

            _deviceCyclerManager = new DeviceCyclerManager();
            MMNotificationClient.Instance.DefaultDeviceChanged += (sender, @event) =>
            {
                _dispatcher.Debounce(250, o =>
                {
                    Log.Information(@"[WINAPI] Default device changed to {device}:{role}", @event.Device, @event.Role);
                    DefaultDeviceChanged?.Invoke(sender, @event);
                });
            };
        }
Exemple #6
0
        private AppModel()
        {
            _notificationManager = new NotificationManager(this);

            _deviceCyclerManager = new DeviceCyclerManager();
            MMNotificationClient.Instance.DefaultDeviceChanged += (sender, @event) =>
            {
                _dispatcher.Debounce(TimeSpan.FromMilliseconds(200), defaultDeviceChanged =>
                {
                    Log.Information(@"[WINAPI] Default device changed to {device}:{role}", @event.Device, @event.Role);
                    defaultDeviceChanged?.Invoke(sender, @event);
                }, DefaultDeviceChanged);
            };
            _microphoneMuteToggler = new MicrophoneMuteToggler(AudioSwitcher.Instance, _notificationManager);
        }