public void AddNew(NotificationJobState targetJobState, INotificationEndPoint notificationEndPoint) { JobNotificationSubscription subscription = new JobNotificationSubscription(targetJobState, notificationEndPoint); if (_cloudMediaContext != null) { subscription.InitCloudMediaContext(_cloudMediaContext); } _jobNotificationSubscriptionList.Add(subscription); }
public void AddNew(NotificationJobState targetJobState, INotificationEndPoint notificationEndPoint, bool includeTaskProgress) { TaskNotificationSubscription subscription = new TaskNotificationSubscription(targetJobState, notificationEndPoint, includeTaskProgress); if (MediaContext != null) { subscription.SetMediaContext(MediaContext); } _taskNotificationSubscriptionList.Add(subscription); }
public JobNotificationSubscription(NotificationJobState targetJobState, INotificationEndPoint notificationEndPoint) { TargetJobState = (int)targetJobState; if (notificationEndPoint == null) { throw new ArgumentNullException("notificationEndPoint"); } _notificationEndPoint = notificationEndPoint; NotificationEndPointId = _notificationEndPoint.Id; }
public TaskNotificationSubscription(NotificationJobState targetTaskState, INotificationEndPoint notificationEndPoint, bool includeTaskProgress) { TargetTaskState = (int)targetTaskState; if (notificationEndPoint == null) { throw new ArgumentNullException("notificationEndPoint"); } _notificationEndPoint = notificationEndPoint; NotificationEndPointId = _notificationEndPoint.Id; IncludeTaskProgress = includeTaskProgress; }