Exemplo n.º 1
0
 /// <summary>取消定时</summary>
 public static void Unschedule(this IAgent agent, IEnumerable <long> idList)
 {
     foreach (var id in idList)
     {
         QuartzTimer.Remove(id);
     }
 }
Exemplo n.º 2
0
        /// <summary>取消定时</summary>
        public static void Unschedule(this IAgent agent, long id)
        {
            if (id <= 0)
            {
                return;
            }

            QuartzTimer.Remove(id);
        }