public static async Task HttpTriggerAuditDataCleanup( [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest httpRequest, [Inject] IAuditDataCleanUpService auditDataCleanUpService) { await auditDataCleanUpService.TriggerAuditDataCleanup(); }
public static async Task TimerTriggerAuditDataCleanup( [TimerTrigger("%AuditDataCleanUpSchedule%", RunOnStartup = false)] TimerInfo timerInfo, [Inject] IAuditDataCleanUpService auditDataCleanUpService) { await auditDataCleanUpService.TriggerAuditDataCleanup(); }