-
Hello everyone, I'm trying to add Quartz to a Windows Forms project with .NET 4.7.2 using the Microsoft.Extensions.DependencyInjection extension and Quartz.Extensions.DependencyInjection. However, in the Program.cs class:
However, on the line var schedulerFactory = serviceProvider.GetRequiredService();, the following exception is thrown: System.InvalidOperationException: 'No service for type 'Quartz.IScheduler' has been registered.' Does anyone know if there is an error? I haven't found anything on the web about this issue." |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is it a Looking into the |
Beta Was this translation helpful? Give feedback.
Is it a
ISchedulerFactory
that you need to be requesting?Looking into the
ServiceCollectionExtensions.cs
it registers a ISchedulerFactory, but I can't see it registering IScheduler.