public virtual INotificationResultCourier EnqueueToShow(IResultProvider notificationVM, string originator) { this.AssertInitialized(); NotificationDisplayTask displayTask = this.GetDisplayTask(notificationVM, originator); if (!this.AddToDisplayQueue(displayTask)) { displayTask.SetResult(new NotificationResult(ResultCode.Unspecified)); displayTask.State = NotificationState.Aborted; } return(new NotificationResultCourier(displayTask)); }
protected virtual bool AddToDisplayQueue(NotificationDisplayTask task) { return(this.Provider.EnqueueToDisplay(task)); }
public NotificationResultCourier([NotNull] NotificationDisplayTask realTask) { Assert.ArgumentNotNull(realTask, "realTask"); this.RealTask = realTask; }
protected virtual bool AddToDisplayQueue(NotificationDisplayTask task) { return this.Provider.EnqueueToDisplay(task); }