internal void RemoveTask(int TaskId) { DataExchanger.Clear(TaskId); TaskOfClientInfoes.Remove(TaskId); OperationContext.CurrentTaskServerTasks.Remove(TaskId); ValidationRuleInfoManager.RemoveTask(TaskId); }
internal void AddTask(int TaskId, string clientId) { DataExchanger.Clear(TaskId); TaskOfClientInfoes.TryAdd(TaskId, clientId); OperationContext.CurrentTaskServerTasks.TryAdd(TaskId, this); }