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

NotificationHandlerOnJobTransferredEvent() private method

Notifications the handler on job transferred event.
private NotificationHandlerOnJobTransferredEvent ( 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 NotificationHandlerOnJobTransferredEvent(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.JobTransferred(sender);
            }

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