Created
January 9, 2020 00:59
-
-
Save bariscanyilmaz/46d6547ea648586a40b67fafcc8dcd52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Fire-and-Forget | |
BackgroundJob.Enqueue(()=>Console.WriteLine("Fire-and-Forget ")); | |
//Recurring | |
RecurringJob.AddOrUpdate(()=>Console.WriteLine("Recurring "),Cron.Daily); | |
//Delayed Jobs | |
var jobId= BackgroundJob.Schedule(()=>Console.WriteLine("10 seconds Delayed"),TimeSpan.FromSeconds(10)); | |
//Continuations | |
BackgroundJob.ContinueJobWith(jobId,()=>Console.WriteLine("Continuations")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment