logo

Quartz.LightCore

Quartz.LightCore is a binding to use LightCore as DI container when using Quartz.NET.

Open-Source

Quartz.LightCore is free to use, improve, contribute and distribute. Source code is available on GitHub under MIT license.

How to use it?

Quartz.LightCore supplies Quartz with a new JobFacotry that will resolve the needed jobs using LightCore.

Simply start out by configuring the LightCore-container as usual, then use the UseLightCoreResolverJobFacotry-extension of the scheduler and supply the LightCore-container.

This will set up the Quartz scheduler to use the new JobFacotry and resolve new jobs using LightCore.

Example:


// setup LightCore
var builder = new ContainerBuilder();
/* some fancy setup here */
var container = builder.Build();

// setup Quartz
var scheduler = await new StdSchedulerFactory().GetScheduler().UseLightCoreResolverJobFacotry(container);
scheduler.ScheduleJob(
	JobBuilder.Create().Build(),
	TriggerBuilder.Create().StartNow().Build());
    
GitHub