NCronJob-Dev / NCronJob

A Job Scheduler sitting on top of IHostedService in dotnet.
https://docs.ncronjob.dev/
MIT License
158 stars 11 forks source link

Minimal API for instant jobs #76

Closed linkdotnet closed 5 months ago

linkdotnet commented 5 months ago

Instant jobs should also be executable via an anonymous lambda:

instantJobRegistry.RunInstantJob((ServiceA a, ServiceB b) => {a.Do(b);});

That would gives us a big edge over Hangfire as you don't have to provide the dependencies as a closure!