/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { if (_context != null) { _context.Dispose(); } // tell the scheduler manager to recycle this task scheduler if (_schedulerMgr != null) { _schedulerMgr.RecycleScheduler(this.Name); } }