/// <summary> /// 移除指定的ID/Removes the specified id. /// </summary> /// <param name="id">动作id/The id.</param> public void Remove(string id) { lock (syncRoot) { ProcessStatus.Remove(id); } }
/// <summary> /// Removes the specified id. /// </summary> /// <param name="id">The id.</param> public void Remove(string id) { lock (syncRoot) { ProcessStatus.Remove(id); ProcessStatusMessage.Remove(id); string typeFullName = this.GetType().FullName; if (SingleTaskIdByTypeName.Keys.Count(x => x == typeFullName) == 1) { SingleTaskIdByTypeName.Remove(typeFullName); } } }