internal StoreEndpoint() { Ever.y().Day.At(DateTimeOffset.Now.Offset).Do(async() => { var store = await GetStoreAsync(); await StoreUpdated(store); }); }
static void Main(string[] args) { //Ever.y().Day.At(15, 00).Utc().Do(() => Console.WriteLine("test")); JobManager.Current.JobExceptionOccurred += Current_JobExceptionOccurred; //Ever.y(2).Seconds.Do(() => Console.WriteLine("hoi")); Ever.y(31).thOfTheMonth.At(17).Do(() => Console.WriteLine("biem")); Thread.Sleep(Timeout.Infinite); }
static void Main(string[] args) { Ever.y().Day.At(15, 00).Utc().Do(() => Console.WriteLine("test")); JobManager.Current.JobExceptionOccurred += Current_JobExceptionOccurred; Action job = () => { throw new Exception("test"); }; Once.After(4).Seconds.Do(job); Ever.y(2).Seconds.Do(() => Console.WriteLine("hoi")); Thread.Sleep(Timeout.Infinite); }