File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -52,34 +52,6 @@ public static class QuartzTimer
5252 /// </summary>
5353 private static readonly StatisticsTool StatisticsTool = new ( ) ;
5454
55- /// <summary>
56- /// 取消订阅定时任务
57- /// </summary>
58- /// <param name="id">要取消的定时任务ID</param>
59- [ Obsolete ( "请使用Remove(long id)" ) ]
60- public static void UnSchedule ( long id )
61- {
62- if ( id <= 0 )
63- {
64- return ;
65- }
66-
67- _scheduler . DeleteJob ( JobKey . Create ( id . ToString ( ) ) ) ;
68- }
69-
70- /// <summary>
71- /// 批量取消订阅定时任务
72- /// </summary>
73- /// <param name="set">要取消的定时任务ID集合</param>
74- [ Obsolete ( "请使用Remove(IEnumerable<long> set)" ) ]
75- public static void UnSchedule ( IEnumerable < long > set )
76- {
77- foreach ( var id in set )
78- {
79- UnSchedule ( id ) ;
80- }
81- }
82-
8355 /// <summary>
8456 /// 删除指定的定时任务
8557 /// </summary>
You can’t perform that action at this time.
0 commit comments