Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Quartz UI #7724


User avatar
0
ivanosw1 created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    ivanosw1 created

    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.

  • User Avatar
    0
    maliming created
    Support Team

    hi ivanosw1 Please see:

    https://github.com/guryanovev/CrystalQuartz/blob/master/examples/09_Quartz3_AspNetCore_Web/CqSamples.Quartz3.AspNetCore.Simple/Startup.cs#L45

  • User Avatar
    0
    ivanosw1 created

    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

  • User Avatar
    1
    ivanosw1 created

    I think I've found the solution.

    1. Reference Quartz nuget package (3.0.7) in web host project
    2. Imports using Quartz.Impl;
    3. In Configure method of Startup.cs write app.UseCrystalQuartz(() => StdSchedulerFactory.GetDefaultScheduler().Result);
    4. Navigate on http://localhost:{yourport}/framework/quartz

    Thansk to all for support