Esempio n. 1
0
 private static async Task RunApprenticeshipsReferenceDataComparison(IApprenticeshipsDataService service, IPaymentLogger log)
 {
     try
     {
         await service.ProcessComparison();
     }
     catch (Exception e)
     {
         log.LogError("Error in ProcessComparison", e);
         throw;
     }
 }
Esempio n. 2
0
 public static async Task HttpTriggerApprenticeshipsReferenceDataComparison(
     [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest httpRequest,
     [Inject] IApprenticeshipsDataService service, [Inject] IPaymentLogger log)
 {
     await RunApprenticeshipsReferenceDataComparison(service, log);
 }
Esempio n. 3
0
 public static async Task TimerTriggerApprenticeshipsReferenceDataComparison([TimerTrigger("%ApprenticeshipValidationSchedule%", RunOnStartup = false)] TimerInfo myTimer, [Inject] IApprenticeshipsDataService service, [Inject] IPaymentLogger log)
 {
     await RunApprenticeshipsReferenceDataComparison(service, log);
 }