Manually triggered job has trigger name starting with "MT_". See the job execution context for trigger information.
Quartz.NET - How to determine the trigger from IJobExecutionContext
-
05-07-2023 - |
Frage
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?
Lösung
Andere Tipps
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.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow