public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, TraceWriter log) { log.Info("C# DailyUpdateTrigger HTTP trigger function processed a request."); string result = DailyUpdater.Update(log); return(new OkObjectResult(result)); }
public static void Run([TimerTrigger("0 0 5 * * *")] TimerInfo myTimer, TraceWriter log) { log.Info("C# DailyUpdateTimer timer trigger function processed a request."); string result = DailyUpdater.Update(log); log.Info("C# DailyUpdateTimer timer completed: " + result); }