Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我正在创建的 Windows 服务中使用 Quartz.NET,我想要一种方法来遍历所有作业以检测它是否被暂停。如何检查作业是否暂停?我在 JobDetail 类中找不到合适的方法。
谢谢
我认为您检查的是触发器而不是工作本身。
if (scheduler.GetTriggerState(triggerName, triggerGroup) == TriggerState.Paused) { //paused }