Using scoped services inside a Quartz.NET hosted service with ASP.NET Core

added by DotNetKicks
5/28/2019 10:29:19 AM

1070 Views

In my previous post I showed how you can create a Quartz.NET hosted service with ASP.NET Core and use it to run background tasks on a schedule. Unfortunately, due to the way way the Quartz.NET API works, using Scoped dependency injection services in your Quartz jobs is somewhat cumbersome.


0 comments