Esempio n. 1
0
        protected override async Task DoWork(CancellationToken cancellationToken)
        {
            try
            {
                var jobs = await _jobDasMismatchService.GetDasMismatches(cancellationToken);

                await _jobDasMismatchHub.SendMessage(jobs);
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to {nameof(DoWork)} in {nameof(JobDasMismatchTimedHostedService)}", ex);
            }
        }
Esempio n. 2
0
        public async Task <IActionResult> Index(int?collectionYear, CancellationToken cancellationToken)
        {
            var model = _jsonSerializationService.Deserialize <JobProcessingModel <DasMismatchLookupModel> >(await _jobDasMisMatchService.GetDasMismatches(cancellationToken));

            model.CollectionYear = collectionYear;

            return(View("Index", model));
        }