Наследование: NotificationEventArgs
Пример #1
0
 internal void JobError(object sender, ErrorNotificationEventArgs e)
 {
     if (null != this.onJobErrored)
     {
         this.onJobErrored(sender, new JobErrorNotificationEventArgs(e.Error));
     }
 }
Пример #2
0
 private void notificationHandler_OnJobErrorEvent(object sender, ErrorNotificationEventArgs e)
 {
     // route the event to the job
     if (this.jobs.ContainsKey(e.Job.JobId))
     {
         BitsJob job = this.jobs[e.Job.JobId];
         job.JobError(sender, e);
     }
     //publish the event to other subscribers
     if (this.onJobErrored != null)
         this.onJobErrored(sender, e);
 }
Пример #3
0
 private void notificationHandler_OnJobErrorEvent(object sender, ErrorNotificationEventArgs e)
 {
     // route the event to the job
     if (this.jobs.ContainsKey(e.Job.JobId))
     {
         BitsJob job = this.jobs[e.Job.JobId];
         job.JobError(sender, e);
     }
     //publish the event to other subscribers
     if (this.onJobErrored != null)
     {
         this.onJobErrored(sender, e);
     }
 }
Пример #4
0
 internal void JobError(object sender, ErrorNotificationEventArgs e)
 {
     if (null != this.onJobErrored)
         this.onJobErrored(sender, new JobErrorNotificationEventArgs(e.Error));
 }