jlucansky / Quartzmin

Quartzmin is powerful, easy to use web management tool for Quartz.NET
MIT License
550 stars 180 forks source link

Example for Asp.Net Core with own controllers #9

Open keycad opened 5 years ago

keycad commented 5 years ago

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

BaronRector commented 5 years ago

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

keycad commented 5 years ago

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

BaronRector commented 5 years ago

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

natnat85 commented 5 years ago

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.

keycad commented 4 years ago

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)

edwinn1990 commented 4 years ago

Did you manage to find a solution for this?

DenisPav commented 4 years ago

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.

pigiax commented 4 years ago

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?

DenisPav commented 4 years ago

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

DenisPav commented 4 years ago

@pigiax 👋

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

pigiax commented 4 years ago

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