quartznet
quartznet copied to clipboard
DirectSchedulerFactory: Return scheduler from CreateScheduler overloads
Is there a specific reason why the CreateScheduler(...)
overloads on DirectSchedulerFactory do not return the scheduler that is created.
You can of course call DirectSchedulerFactory.GetScheduler(string schedName, CancellationToken cancellationToken = default)
to get a reference to the scheduler that was created, but it's kinda weird that you have to go through this extra step.
Because, reasons... Well it's because it's a line-by-line kinda port of the Java version. So there's no specific reason and can be changes if it helps some use case (I think I've never used in DirectSchedulerFactory
in my use cases).