Easy to use Background Task Executor for ASP.Net Core
$ dotnet add package BackgroundTaskExecutor.AddBackgroundTaskExecutor().WithDatabase(options => { }).Use method to finish DI specification"BackgroundTaskExecutor": { "Profiles": { "{profileName}": { "Interval": {interval}, "IntervalTimeUnit": {"Millisecond" | "Second" | "Minute" | "Hour" | "Day" }, "FirstRunAfter": {delay}, "FirstRunAfterTimeUnit": {"Millisecond" | "Second" | "Minute" | "Hour" | "Day" }, } } }
You can override Default profile as well both defining profile with name "Default" or define necessary parameters in "BackgroundTaskExecutor" section
[BackgroundExecution({profileName})] attribute to method