Hi, I wuold like to add the UI interface for Quartz. I'm using 7.1 version (Core + Angular).
This is the repository Crtystal Quartz UI
In the startup method who can I have a reference to the scheduler like explained in documentation ?
using CrystalQuartz.AspNetCore;
// ...
/*
* app is IAppBuilder
* scheduler is your IScheduler (local or remote)
*/
app.UseCrystalQuartz(() => scheduler);
Can you help me? Thank you
5 Answer(s)
-
0
Hi @ivanosw1
This will work but you can see the Quartz UI on Host app which is hosted on http://localhost:22742. It will not add UI to Angular app.
-
0
Sorry @ismcagdas, my question isn't clear.
My problem is how obtain the "scheduler" instance on startup.
app.UseCrystalQuartz(() => scheduler)
I'm aware that the UI isn't for Angular.
Thank you.
-
0
hi ivanosw1 Please see:
https://github.com/guryanovev/CrystalQuartz/blob/master/examples/09_Quartz3_AspNetCore_Web/CqSamples.Quartz3.AspNetCore.Simple/Startup.cs#L45
-
0
Thank @maliming.
The example use the "core" quartz implementation.
I'm using aspnet zero and I need to use IAbpQuartzConfiguration that has the scheduler instance used through the application. But the IAbpQuartzConfiguration is not available at startup time (in startup.cs in web host project).
So, how can I pass to
app.UseCrystalQuartz(()
the Scheduler used in aspnet Zero to view in the UI the triggers and jobs?Thanks
-
1
I think I've found the solution.
- Reference Quartz nuget package (3.0.7) in web host project
- Imports using Quartz.Impl;
- In Configure method of Startup.cs write
app.UseCrystalQuartz(() => StdSchedulerFactory.GetDefaultScheduler().Result);
- Navigate on http://localhost:{yourport}/framework/quartz
Thansk to all for support