I have a reccuring job in Hangfire which is triggered by CronTemplate. I need to get next execution time during the job execution.
I came up with an idea to inject CronTemplate into the job and calculate that date using some of existing libraries based on the template, but I have some design concerns about this solution and I think a solution based on some kind of JobExecutionContext would be better, but so far I couldn't find any way to get it.
Does something similar exist in Hangfire? If so, how can I access it?
Any idea would be appreciated.