문제

I am using Quartz.NET and users can trigger jobs manually, or they run on a schedule. Is there a way from the IJobExecutionContext object to tell if it was manually triggered?

도움이 되었습니까?

해결책

Manually triggered job has trigger name starting with "MT_". See the job execution context for trigger information.

다른 팁

I would look at the IJobExecutionContext.Trigger(ITrigger).Description.

Or something on the IJobExecutionContext.Trigger.

That would seem to be the place to look differences in the firing mechanism.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top