Example #1
0
 protected virtual void OnJobWaiting(JobWaitingEventArgs <Task> args)
 {
     if (this.JobWaiting != null)
     {
         this.JobWaiting(this, args);
     }
 }
Example #2
0
        private int RaiseJobWaiting(int millisecondsTimeout)
        {
            JobWaitingEventArgs <Task> args = new JobWaitingEventArgs <Task>(this, this._nestedTask, millisecondsTimeout);

            this.OnJobWaiting(args);
            return(args.MillisecondsTimeout);
        }