AspNEt Core WebApi for the Quartz.Net Scheduler.
The api can easily be plugged into a existing application.
Quartz.NET is a full-featured, open source job scheduling system that can be used from smallest apps to large scale enterprise systems.
- Triggers - Coming
- Calendars - Coming
- .NET Standard 2.2
...
// Setting up a DemoScheduler
var properties = new NameValueCollection
{
{"quartz.serializer.type", "json"},
{"quartz.scheduler.instanceName", "TestScheduler"},
{"quartz.scheduler.instanceId", "ABQuartzAdmin"},
{"quartz.threadPool.type", "Quartz.Simpl.SimpleThreadPool, Quartz"},
{"quartz.threadPool.threadCount", "10"}
};
ISchedulerFactory sf = new StdSchedulerFactory(properties);
var scheduler = sf.GetScheduler().GetAwaiter().GetResult();
services.AddSingleton(scheduler);
scheduler.Clear();
DemoScheduler.Create(scheduler, true).GetAwaiter().GetResult();
// Adding the Api
services.AddQuartzAdmin(scheduler);
...
The example project has swagger installed so just add /swagger to the url and the swagger document will be loaded.
This project is made available under the MIT license. See LICENSE for details.