/// <summary>
 /// 通知工作线程即将执行任务。
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnTaskExecuting(TaskExecutingEventArgs <TTask> e)
 {
     TaskExecuting?.Invoke(this, e);
 }
Пример #2
0
 /// <summary>
 /// 通知工作线程即将执行任务。
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void OnTaskExecuting(object sender, TaskExecutingEventArgs <TTask> e)
 {
     IncrementWorkThread();
     TaskExecuting?.Invoke(sender, e);
 }