I added a simple test job which displays a text with current time using the statement below (plus another one with id2). The timestamp displayed is showing the same timestamp every minute, the first one. Why it’s not displaying the actual current time? I think it’s a closure. How do I make it show the current time every minute?
RecurringJob.AddOrUpdate("id1",
() => Console.WriteLine("{0} Recurring job #1 completed successfully!", DateTime.Now),
Cron.Minutely);