Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

gwinnem/AB.QuartzAdmin.WebApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AB Quartz Admin Web API


License: MIT

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.

Endpoints

Image of scheduleractions Image of jobactions

  • Triggers - Coming
  • Calendars - Coming

Install

Minimum requirements

  • .NET Standard 2.2

Usage

...
// 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);
...

Notes

The example project has swagger installed so just add /swagger to the url and the swagger document will be loaded.

License

This project is made available under the MIT license. See LICENSE for details.