/// <summary> /// The thread callback. This actually executes the task. /// </summary> /// <param name="threadContext">The thread context, not used.</param> public void ThreadPoolCallback(Object threadContext) { try { _task.Run(); _owner.TaskFinished(this); } finally { if (_group != null) { _group.TaskStopping(); } } }