private void OnJobComplete(object sender, JobCompleteEventArgs e)
        {
            // Update statistics and return the worker to the queue...
            this.SuccessCount += 1;

            if (e.ElapsedTime > this.MaxJobTime)
            {
                this.MaxJobTime = e.ElapsedTime;
            }

            this.EnqueueWorker(e.Worker);
            this.OnJobProcessed(new JobProcessedEventArgs(e.Job));
        }
Beispiel #2
0
 /// <summary>
 /// Raises the JobComplete event.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnJobComplete(JobCompleteEventArgs e)
 {
     JobComplete?.Invoke(this, e);
 }