How to: Create a Windows Service that schedules jobs, logs and is configurable by means of dependency injection

In this blog series we will create a Windows Service in C# with Topshelf, schedule jobs using Quartz, configure dependency injection using Autofac and configure logging using log4net.

As we go through the series, we will explore Topshelf, Quartz, Autofac and log4net, learn more about why to use them, what we can do with them and how to bring them all together.

Series is consisted of four parts and will guide you from creating a project in Visual Studio, to running your Windows Service and seeing logs from scheduled jobs.

1. Create Windows Service with Topshelf

2. Configure logging for Windows Service using log4net

3. Configure dependency injection for Windows Service using Autofac

4. Schedule jobs from Windows Service using Quartz

--

Software Development Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store