Esempio n. 1
0
        public static async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
            ILogger log)
        {
            log.LogInformation("C# HTTP trigger function processed a request.");

            S3TokenRefresh.Run(log);

            return(new OkObjectResult("Done"));
        }
Esempio n. 2
0
 public static void Run([TimerTrigger("0 0 * * * *")] TimerInfo myTimer, ILogger log)
 {
     log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
     S3TokenRefresh.Run(log);
 }