Skip to content

.NET example of incorporating the QuartzScheduler into a ASP.NET 6 web application.

License

Notifications You must be signed in to change notification settings

bnolan001/QuartzScheduler

Repository files navigation

QuartzScheduler

.NET example of incorporating the QuartzScheduler into an ASP.NET 6 web application. The scheduler is configured to run two jobs. An hourly job to pull down the latest observation which uses the SimpleTrigger. There is also a daily job that pulls down the forecast as of 08:15 that uses the CronTrigger.

The API is built using Minimal APIs and a developer friendly Swagger UI. The two endpoints implemented in the project provide the ability to get a list of all scheduled jobs and add a new job based on the currently scheduled ones. The data retrieved is either METAR, encoded weather observation, or TAF, encoded weather forecast. The API implementation also provides and example on how to utilize dependency injection in the endpoints by passing in the ISchedulerFactory instance.

The weather data retrieved is for the ICAO, International Civil Aviation Organization, identifier KPHL, Philadelphia Internationa Airport. For a listing of some of the popular ICAO identifiers in the USA take a looks at the Aviation Weather Center site. All airports around the world are associated with an ICAO identifier so there should be one near you that you could pull down an observation or forecast.

About

.NET example of incorporating the QuartzScheduler into a ASP.NET 6 web application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages