Exemple #1
0
        /*
         * https://azure.microsoft.com/en-us/blog/extensible-triggers-and-binders-with-azure-webjobs-sdk-1-1-0-alpha1/
         * **/
        public static void ProcessTimer([TimerTrigger("00:05:00", RunOnStartup = true)] TimerInfo infoe)
        {
            //message = info.FormatNextOccurrences(1);
            int sentCount = new ScheduleUpdateController().SendAppoinments();

            Console.WriteLine(String.Format("Sent {0} appointments at {1}", new object[] { sentCount, DateTime.Now }));
        }
Exemple #2
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            //Thread thread = new Thread(new ThreadStart(Function));
            //thread.IsBackground = true;
            //thread.Name = "Function";
            //thread.Start();
            ScheduleUpdateController.Update();
        }