/// <summary> /// 任务行为表 /// </summary> public TaskSetActionTable() { this.TimeOut = 30 * 1000; this.table = new ConcurrentDictionary <long, ITaskSetAction>(); LoopWorker.AddWork(this.CheckTaskActionTimeout); }
/// <summary> /// 释放资源 /// </summary> public void Dispose() { LoopWorker.RemoveWork(this.CheckTaskActionTimeout); }