internal void OnJobError(object sender, ErrorNotificationEventArgs e) { if (null != this.onJobErrored) { this.onJobErrored(sender, new JobErrorNotificationEventArgs(e.Error)); } }
private void notificationHandler_OnJobErrorEvent(object sender, ErrorNotificationEventArgs e) { System.Threading.Thread.SpinWait(0); // route the event to the job BitsJob job = this.jobs[e.Job.JobId]; if (null != job) { job.OnJobError(sender, e); } //publish the event to other subscribers if (this.onJobErrored != null) { this.onJobErrored(sender, e); } }