Replies: 4 comments 5 replies
-
Can you create a full repro, preferably as GitHub repository? |
Beta Was this translation helpful? Give feedback.
-
It has been a while (Hope I did this right) Project 1 Error This exception was originally thrown at this call stack: Inner Exception 1: |
Beta Was this translation helpful? Give feedback.
-
Project 2 Sorry, I am using Console logging, but I am not seeing the log entry indicating my job started and it won't debug into the single line I have in TestJob. As shown by the screen shot, this example is now similar to this new post and the screen shot indicates that isn't using the correct JobFactory. |
Beta Was this translation helpful? Give feedback.
-
THANK YOU! Complete solution with delayed start (aka after app.Run):
// add this before start, serviceProvider is from app.Services or some other initialization, using Program.siteService for IServiceProvider. await _scheduler.Start(); |
Beta Was this translation helpful? Give feedback.
-
I am using Quartz inside ASP.NET 6
I want to use the DependencyInjectionJobFactory, and at the same time, I don't want to start the scheduler manually (on response of calling one of the controller POST) and not using the hosted service.
If I add that in startup.cs
And when I start the scheduler, I am using this code (there is more to the code, but this is simplified to talk about the issue)
But the job factory won't be the DI one, it will be the default.
How to use the DI job factory with that scenario?
Appreciate your help
Beta Was this translation helpful? Give feedback.
All reactions