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 ArticleAnswer 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 ArticleHangfire 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
More Pages to Explore .....