Esempio n. 1
0
        async Task <NotificationBaseDataModel> ExecuteNotificationCommand(NotificationBaseDataModel notification)
        {
            if (notification.OneTimeAction)
            {
                Notifications.RemoveLocked(notification);
            }

            var dispatchCommand = notification.CloseCommand;

            if (dispatchCommand != null)
            {
                await dispatchCommand.Dispatch(_mediator).ConfigureAwait(false);
            }

            return(notification);
        }
 void NotifyCenter(NotificationBaseDataModel notification)
 {
     _notificationCenterObservable.OnNext(notification);
 }
Esempio n. 3
0
 void HandleSubscription(NotificationBaseDataModel x)
 {
 }
Esempio n. 4
0
 void RemoveNotification(NotificationBaseDataModel x)
 {
     Notifications.RemoveLocked(x);
 }
Esempio n. 5
0
 void AddNotification(NotificationBaseDataModel x)
 {
     Notifications.AddLocked(x);
 }
Esempio n. 6
0
 void HandleNotification(NotificationBaseDataModel x)
 {
     AddNotification(x);
 }