private void NotificationClientOnClosed(object sender, CloseNotificationEventArgs e)
        {
            var evnt = Closed;

            if (evnt != null)
            {
                evnt(e.NotificationId);
            }
        }
예제 #2
0
        private void OnClosed(NotificationEvents.CloseNotificationArgs closeNotificationArgs)
        {
            var onClosed = Closed;

            if (onClosed != null)
            {
                var args = new CloseNotificationEventArgs(
                    closeNotificationArgs.Notification.NotificationId,
                    closeNotificationArgs.RemovedBy == RemovedBy.User);

                onClosed(this, args);
            }
        }
예제 #3
0
 protected virtual void RequestCloseNotification(CloseNotificationEventArgs e)
 {
     CloseNotificationRequested?.Invoke(this, e);
 }
 private void LifetimeSupervisorOnCloseNotificationRequested(object sender, CloseNotificationEventArgs eventArgs)
 {
     CloseNotification(eventArgs.Notification);
 }