private void NotificationClientOnClosed(object sender, CloseNotificationEventArgs e) { var evnt = Closed; if (evnt != null) { evnt(e.NotificationId); } }
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); } }
protected virtual void RequestCloseNotification(CloseNotificationEventArgs e) { CloseNotificationRequested?.Invoke(this, e); }
private void LifetimeSupervisorOnCloseNotificationRequested(object sender, CloseNotificationEventArgs eventArgs) { CloseNotification(eventArgs.Notification); }