.net Core 2.0 Dependency Injection

aspnetcore
Tags: #<Tag:0x00007fa53e6007d0>

#1

I am not sure how to use hangfire with .net Core 2.0 dependency injection. I see AspNetCoreJobActivator but it require IServiceScopeFactory and I don’t know where to get it. How do I use this?

Also, Couldn’t there be a extension method like .useAspNetActivator?


#2

It is set up automatically when you call services.AddHangfire().