public async Task UpdateBankHolidaysAsync([QueueTrigger(QueueNames.UpdateBankHolidaysQueueName, Connection = "QueueStorage")] string message, TextWriter log) { if (_jobsConfig.DisabledJobs.Contains(JobName)) { _logger.LogDebug($"{JobName} is disabled, skipping ..."); return; } _logger.LogInformation("Starting updating Bank Holidays ReferenceData"); await _client.UpdateBankHolidaysAsync(); _logger.LogInformation("Finished updating Bank Holidays ReferenceData"); }
public async Task UpdateBankHolidays([TimerTrigger(Schedules.MidnightDaily, RunOnStartup = true)] TimerInfo timerInfo, TextWriter log) { if (_jobsConfig.DisabledJobs.Contains(this.GetType().Name)) { _logger.LogDebug($"{this.GetType().Name} is disabled, skipping ..."); return; } _logger.LogInformation("Starting updating Bank Holidays ReferenceData"); await _client.UpdateBankHolidaysAsync(); _logger.LogInformation("Finished updating Bank Holidays ReferenceData"); }