Inheritance: NotificationEventArgs
Example #1
0
 internal void JobError(object sender, ErrorNotificationEventArgs e)
 {
     if (null != this.onJobErrored)
     {
         this.onJobErrored(sender, new JobErrorNotificationEventArgs(e.Error));
     }
 }
Example #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);
 }
Example #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);
     }
 }
Example #4
0
 internal void JobError(object sender, ErrorNotificationEventArgs e)
 {
     if (null != this.onJobErrored)
         this.onJobErrored(sender, new JobErrorNotificationEventArgs(e.Error));
 }