public void Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, ILogger log) { try { log.LogInformation($"Timer trigger function executed at: {DateTime.Now}"); log.LogInformation($"Begin"); dataFeedManager.CreateFeed(inputDataProvider); log.LogInformation($"End"); } catch (Exception ex) { log.LogError($"Error!! {ex.Message}"); log.LogError($"{ex.InnerException?.Message}"); log.LogError($"{ex.StackTrace}"); } }
public void Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req, ILogger log) { try { log.LogInformation($"HttpTrigger trigger function executed at: {DateTime.Now}"); log.LogInformation($"Begin"); dataFeedManager.CreateFeed(inputDataProvider); log.LogInformation($"End"); } catch (Exception ex) { log.LogError($"Error!! {ex.Message}"); log.LogError($"{ex.InnerException?.Message}"); log.LogError($"{ex.StackTrace}"); } }