internal static void CloseNotification(IManagedAudioSession session) { try { _notificationManager.CloseNotification(session.Id); } catch (ObjectDisposedException) { } catch (Exception e) { Logger.Error("Failed to close notification", e); } }
internal static void ShowNotification(IManagedAudioSession session) { try { var content = new VolumeNotificationContent(session); _notificationManager.ShowNotification(content, session.Id, true, NotificationDisplayTime); } catch (ObjectDisposedException) { } catch (Exception e) { Logger.Error("Failed to display notification", e); } }
internal void NotifyAudioStateChange(IManagedAudioSession sender) { NotificationManagerHelper.ShowNotification(sender); }
internal void NotifyOfDisposing(IManagedAudioSession sender) { NotificationManagerHelper.CloseNotification(sender); }