private AppModel() { RegisterForRestart(); RegisterRecovery(); _notificationManager = new NotificationManager(this); _deviceCyclerManager = new DeviceCyclerManager(); }
private AppModel() { RegisterForRestart(); RegisterRecovery(); _notificationManager = new NotificationManager(this); _deviceCyclerManager = new DeviceCyclerManager(); MMNotificationClient.Instance.DefaultDeviceChanged += (sender, @event) => { _dispatcher.Debounce(250, o => { DefaultDeviceChanged?.Invoke(sender, @event); }); }; }
private AppModel() { using (AppLogger.Log.DebugCall()) { RegisterForRestart(); RegisterRecovery(); _notificationManager = new NotificationManager(this); } _deviceCyclerManager = new DeviceCyclerManager(); }
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); }); }; }
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); }