quartznet icon indicating copy to clipboard operation
quartznet copied to clipboard

DirectSchedulerFactory: Return scheduler from CreateScheduler overloads

Open drieseng opened this issue 3 years ago • 1 comments

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.

drieseng avatar Oct 25 '21 13:10 drieseng

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

lahma avatar Oct 25 '21 13:10 lahma