Beispiel #1
0
 public async Task UnPauseReferenceJobs(int collectionYear, int period)
 {
     try
     {
         await _periodEndService.ToggleReferenceDataJobsAsync(collectionYear, period, false);
     }
     catch (Exception e)
     {
         _logger.LogError(e.Message, e);
         throw;
     }
 }
Beispiel #2
0
        public async Task PauseReferenceDataJobs(int year, int period)
        {
            try
            {
                PeriodEndState.CurrentAction = Constants.Action_ReferenceJobsButton;
                await _hubContext.Clients.All.SendAsync(Constants.Action_ReferenceJobsButton, false);

                await _periodEndService.ToggleReferenceDataJobsAsync(year, period, true);
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message, e);
                throw;
            }
        }