Create 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 with 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