public async Task RefreshStatuses()
        {
            var from = await _repository.GetLastRunDateTime();

            _logger.LogInformation("[VRF Refresh] Updating vrf case status from {from}", from);

            var lastCaseUpdate = await _vrfService.Update(from);

            _logger.LogInformation("[VRF Refresh] Updating vrf case status last run date time to {lastCaseUpdate}", lastCaseUpdate);

            await _repository.UpdateLastRunDateTime(lastCaseUpdate);
        }
Example #2
0
        public async Task <DateTime> Update(DateTime fromDateTime)
        {
            try
            {
                _logger.LogInformation("[VRF Refresh] Calling IVendorRegistrationFormService.Update with parameters: [dateTimeFrom={fromDateTime}]", fromDateTime);

                return(await _vendorRegistrationFormService.Update(fromDateTime));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "[VRF Refresh] Error calling IVendorRegistrationFormService.Update with parameters: [dateTimeFrom={fromDateTime}]", fromDateTime);

                throw;
            }
        }