void NotificationHandlerOnJobErrorEvent(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.jobError != null) { this.jobError(sender, e); } }