Ejemplo n.º 1
0
 /// <summary>
 /// 移除指定的ID/Removes the specified id.
 /// </summary>
 /// <param name="id">动作id/The id.</param>
 public void Remove(string id)
 {
     lock (syncRoot)
     {
         ProcessStatus.Remove(id);
     }
 }
Ejemplo n.º 2
0
        /// <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);
                }
            }
        }