jamesmh / coravel

Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze!
https://docs.coravel.net/Installation/
MIT License
3.63k stars 243 forks source link

Coravel.Pro Boilerplate fails to start #356

Open woutervanranst opened 4 months ago

woutervanranst commented 4 months ago

I have no experience with Coravel and wanted to give the Pro (esp. the Dashboard) features a go to evaluate vs Hangfire/Quartz. However I do not get it up and running.

I tried the VS2022 boilerplate examples for a aspnet core web api / aspnet core w razor / the ef6 sample from the docs and followed the steps from the docs but i keep getting this issue

System.InvalidOperationException: 'No service for type 'Coravel.Pro.Features.Jobs.UseCases.MarkJobsKilledByTerminatedProcessCommand' has been registered.'

image

What am I missing here?

jamesmh commented 4 months ago

In ConfigureServices() did you call services.AddCoravelPro(typeof(ApplicationDbContext));?

This step is here in the docs. Let me know if that's the issue or not - thanks!