c# - GetNextFireTimeUtc() returns null while trigger takes place in the futre -


I am trying to delete all the triggers that end because quartz.net is triggered when it crashes Will never be left at all. So I would like to know the next fire time of my triggers and if they do not have any, then they will end and they should be removed. But now I see that even a trigger in the future gives null for its next fire time:

  string expression = "0 26 13 17 10 2015 "; DateTimeOffset? NextFireTimeUtc = TriggerBuilder.Create (). WithCronSchedule (expression) Build () GetNextFireTimeUtc ();  

As is my verb expression for 2015. But nextFireTimeUtc returns null .

Just ran into this self, "until the trigger in the return scheduler is added Not guaranteed to be valid. "

So make sure you run ScheduleJob (...) to get 'GetNextFireTimeUtc ()'.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -