Esempio n. 1
0
 internal static void CloseNotification(IManagedAudioSession session)
 {
     try
     {
         _notificationManager.CloseNotification(session.Id);
     }
     catch (ObjectDisposedException) { }
     catch (Exception e)
     {
         Logger.Error("Failed to close notification", e);
     }
 }
Esempio n. 2
0
 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);
 }