SharpBits.Base.BitsManager.NotificationHandlerOnJobErrorEvent C# (CSharp) Method

NotificationHandlerOnJobErrorEvent() private method

Notifications the handler on job error event.
private NotificationHandlerOnJobErrorEvent ( object sender, ErrorNotificationEventArgs e ) : void
sender object The object that called the event.
e ErrorNotificationEventArgs The SharpBits.Base.ErrorNotificationEventArgs instance containing the event data.
return void
        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);
            }
        }