Exemple #1
0
        /// <summary>
        /// The function is responsible to take actions when webjob is run.
        /// </summary>
        /// <returns></returns>
        public async Task Run()
        {
            await _lunaClient.ProcessActiveProvisions();

            // instead of retrying processing meter events every 1 minute, we will retry every 10 minutes
            if (DateTime.UtcNow.Minute % 10 == 0)
            {
                await _lunaClient.ProcessCustomMeterEvents();
            }
        }
Exemple #2
0
 /// <summary>
 /// The function is responsible to take actions when webjob is run.
 /// </summary>
 /// <returns></returns>
 public async Task Run()
 {
     await _lunaClient.ProcessActiveProvisions();
 }