About me, software and my world

Category: Software

Quartz.LightCore

I have created a LightCore binding to use with Quartz.Net: Quartz.LightCore.

Quartz.LightCore makes using Topshelf and LightCore really easy:

// 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<ThisJobWillBeInstanciatedUsingLightCore>().Build(),
	TriggerBuilder.Create().StartNow().Build());

The installation is possible via NuGet: Install-Package Quartz.LightCore

AppVeyor Nuget

Topshelf.LightCore

I have created a LightCore binding to use with Topshelf: Topshelf.LightCore.

Topshelf.LightCore makes using Topshelf and LightCore really easy:

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

// setup Topshelf
var host = HostFactory.Run(x =>
{
    x.UseLightCore(container); // Enable LightCore
    x.Service<FakeSevice>(s =>
    {
        s.ConstructUsingLightCore<ThisServiceWillBeInstanciatedUsingLightCore>(); // Construct service using LightCore
        s.WhenStarted(tc => tc.Start());
        s.WhenStopped(tc => tc.Stop());
        /* more Topshelf code... */
    });
});

The installation is possible via NuGet: Install-Package Topshelf.LightCore

AppVeyor Nuget

© 2020 Nils Andresen

Theme by Anders NorenUp ↑