/// <summary> /// 增加定时任务计划 /// </summary> /// <param name="planConfig"></param> public static void Append(PlanConfig planConfig) { CheckDisposed(); if (planConfig == null) { throw new ArgumentNullException("planConfig"); } Initialize(); _lockStrategy.TryEnterLock(() => { planConfig.SetDiffInterval(_msInterval / 1000); _listenerQueue.Add(planConfig); }); }
/// <summary> /// 增加定时任务计划 /// </summary> /// <param name="planConfig"></param> public static void Append(PlanConfig planConfig) { CheckDisposed(); if (planConfig == null) { throw new ArgumentNullException("planConfig"); } Initialize(); _lockStrategy.TryEnterLock(() => { planConfig.SetDiffInterval(_msInterval / 1000); _listenerQueue.Add(planConfig); }); }
/// <summary> /// 增加定时任务计划 /// </summary> /// <param name="planConfig"></param> public static void Append(PlanConfig planConfig) { CheckDisposed(); if (planConfig == null) { throw new ArgumentNullException("planConfig"); } Initialize(); lock (asyncRoot) { planConfig.SetDiffInterval((double)_msInterval / 1000); _listenerQueue.Add(planConfig); } }
/// <summary> /// 增加定时任务计划 /// </summary> /// <param name="planConfig"></param> public static void Append(PlanConfig planConfig) { CheckDisposed(); if (planConfig == null) { throw new ArgumentNullException("planConfig"); } Initialize(); lock (asyncRoot) { planConfig.SetDiffInterval((double)_msInterval / 1000); _listenerQueue.Add(planConfig); } }