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

NotificationHandlerOnJobModifiedEvent() private method

Notifications the handler on job modified event.
private NotificationHandlerOnJobModifiedEvent ( object sender, NotificationEventArgs e ) : void
sender object The object that called the event.
e NotificationEventArgs The NotificationEventArgs instance containing the event data.
return void
        void NotificationHandlerOnJobModifiedEvent(object sender, NotificationEventArgs e)
        {
            // route the event to the job
            if (this.Jobs.ContainsKey(e.Job.JobId))
            {
                BitsJob job = this.Jobs[e.Job.JobId];
                job.JobModified(sender);
            }

            // publish the event to other subscribers
            if (this.jobModified != null)
            {
                this.jobModified(sender, e);
            }
        }