Quartzmin icon indicating copy to clipboard operation
Quartzmin copied to clipboard

Example for Asp.Net Core with own controllers

Open keycad opened this issue 6 years ago • 11 comments

Hi,

I'm trying to use your tool in a project that also hosts some controllers, but I'm having no luck. I'm probably doing something wrong, but if you could give me a hint I'll be grateful.

I have an Asp.Net Core 2.1 web api project, that exposes a couple of controllers. This project also starts the scheduler, and should include your management tool. The problem is, when I add it, I just can see the initial page but nothing from your Content folder (styles, scripts...) is loaded. And besides that, navigation doesn't work either.

Thanks in advance

Edit: I'm looking for a similar way to deploy it than CrystalQuartz, that just adding app.UseCrystalQuartz(() => scheduler), it deploys the web in /quartz path

keycad avatar Mar 04 '19 12:03 keycad

I'm also trying to accomplish the same thing. Did you have any luck?

BaronRector avatar Apr 11 '19 16:04 BaronRector

nope... sorry. I was comparing Quartz.NET and Hangfire and not being able to solve this made my choice easier...

keycad avatar Apr 11 '19 17:04 keycad

Well that's unfortunate. Thanks for the quick reply! Is there a reason you didn't go with Crystal Quartz?

BaronRector avatar Apr 11 '19 17:04 BaronRector

I have the same issue regarding my application. it's a web app on a stable IIS that uses MVC, I need quartzmin to run at /quartzmin so that the real application is not override. Was a solution found or is Crystal Quartz the only option here? QuartzMin does have the better UI and feature set.

natnat85 avatar Sep 14 '19 21:09 natnat85

Well that's unfortunate. Thanks for the quick reply! Is there a reason you didn't go with Crystal Quartz?

Sorry for the so late reply. The reason is Hangfire's dashboard is much better than Crystal Quartz's (at least it was at that time, when I tested them)

keycad avatar Jan 13 '20 16:01 keycad

Did you manage to find a solution for this?

edwinn1990 avatar Feb 18 '20 00:02 edwinn1990

I've managed to connect it to my project. I've used forked version that is available on nuget and targets netcoreapp3.1. After that I actually added custom convention and mapped quartzmin controllers to separate route.

It's a bit of work, but after that it works flawlessly.

DenisPav avatar Feb 18 '20 07:02 DenisPav

I've managed to connect it to my project. I've used forked version that is available on nuget and targets netcoreapp3.1. After that I actually added custom convention and mapped quartzmin controllers to separate route.

It's a bit of work, but after that it works flawlessly.

@DenisPav did you have "custom convention and mapped quartzmin controllers to separate route." sample code?

pigiax avatar Mar 30 '20 16:03 pigiax

@pigiax Nope, I only have it in a private project. I can probably create an example repo when I catch some time.

DenisPav avatar Mar 31 '20 19:03 DenisPav

@pigiax 👋

You can find sample here. Everything is mostly explained there.

DenisPav avatar Apr 02 '20 11:04 DenisPav

@DenisPav thank you so much! Everything it's clear!

pigiax avatar Apr 02 '20 12:04 pigiax