I'm working on an Asp.Net Core 3.1 application in which I need to schedule different type of jobs. We're using Scoped jobs in order to work with Scoped services (like the dbcontext). As of recent, Quartz.NET supports scoped jobs out of the box, with the help of the UseMicrosoftDependencyInjectionScopedJobFactory (as described in the official documentation).
However, I'm not sure how to register the actual scheduler in order to inject this in my services and being able to schedule new jobs at runtime.
I know I can get hold on a IScheduler by doing this:
ISchedulerFactory schedulerFactory = new StdSchedulerFactory();
scheduler = schedulerFactory.GetScheduler();
But I haven't found any documentation on how to register this in my actual Services pipeline. What is the proper/recommended/documented way of doing this?