RecurringJob.AddOrUpdate(..) & IoC

When enqueuing a background job it’s possible to do so by writing for instance:
BackgroundJob.Enqueue<IEmailSender>(x => x.Send(13, "Hello!"));
…and this will be resolved on the HangfireServer side to the instance registered with the IoC container.

But this doesn’t seem to be possible with RecurringJob.AddOrUpdate(…), or am I missing something?

I’m doing it like this:
RecurringJob.AddOrUpdate<IEmailSender>(“JobId”, x => x.Send(13, “Hello!”), Cron.Hourly)

Works like a charm…
Cheers
dusty

I don’t know if it was just my intellisense acting up. You are correct, it is available. Thanks. :smile: