Quantcast
Channel: Hangfire RecurringJob with dependency injection - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by J Wynia for Hangfire RecurringJob with dependency injection

Not sure when it was added, but I just did something similar to this in my current project and it works fine. The EmailBackgroundTask is a non-static class and that's a non-static method. The class has...

View Article



Answer by Steve for Hangfire RecurringJob with dependency injection

Quick answer is no, the default job activator only works on parameter-less constructors or static methods. I did something (in VB.net) quick and dirty to see if I could get it working and have shown it...

View Article

Hangfire RecurringJob with dependency injection

Is it possible to have Hangfire instantiate objects with the configure JobActivator when they're scheduled to run as a RecurringJob? The signature of the method seems to force static only usages:...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images