Is there a way for me to get the schedule of newly created recurring jobs?
So if its set up like this:
RecurringJob.AddOrUpdate(“my-id”, () =>
Console.WriteLine("I did a thing!), Cron.Hourly);
then I’d like to grab the Cron.Hourly
somewhere. Ideally, something like:
public class MyClientFilter : IClientFilter
{
/// <inheritdoc />
public void OnCreating(CreatingContext context)
{
// Get cron or schedule here somehow
}
/// <inheritdoc />
public void OnCreated(CreatedContext context)
{ }
}
But I can’t seem to find anything on the context related to the recurring job’s cron.