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

feat: Enable Anonymous jobs for instant execution #77

Closed linkdotnet closed 5 months ago

linkdotnet commented 5 months ago

This PR allows the following:

provider.GetRequiredService<IInstantJobRegistry>().RunInstantJob(async (ChannelWriter<object> writer) =>
{
    await writer.WriteAsync("Done");
});

Instant jobs that are also "just" a delegate