Ejemplo n.º 1
0
 internal StoreEndpoint()
 {
     Ever.y().Day.At(DateTimeOffset.Now.Offset).Do(async() =>
     {
         var store = await GetStoreAsync();
         await StoreUpdated(store);
     });
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }