- Adding instant task.
- Adding scheduled job.
- Listing failed jobs.
- Retrying failed job.
BackgroundJob.AddJob(() =>
{
Console.WriteLine("Instant job");
});
BackgroundJob.Schedule(() =>
{
Console.WriteLine("This is a scheduled job!");
}, TimeSpan.FromMinutes(10));