Click here to Skip to main content
15,565,146 members
Articles / Web Development / ASP.NET / ASP.NET Core

Stats

26.4K views
24 bookmarked

Understanding Dependency Injection in .NET Core with Quartz.NET example

Rate me:
Please Sign up or sign in to vote.
4.72/5 (16 votes)
14 Sep 2020CPOL5 min read
The article shows how to perform dependency injection when using Quartz.NET library employing standard .NET Core DI container library. Also, we'll focus on a couple of other useful .NET core techniques.
Quartz.NET is a handy library that allows you to schedule recurring tasks via implementing IJob interface. Yet the limitation of it is that, by default, it supports only parameterless constructor which complicates injecting external service inside of it, i.e., for implementing repository pattern. In this article, we'll take a look at how we can tackle this problem using standard .NET Core DI container.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Ukraine Ukraine
Team leader with 8 years of experience in the industry. Applying interest to a various range of topics such as .NET, Go, Typescript and software architecture.

Comments and Discussions