Exemplo n.º 1
0
        protected override async Task ExecuteAsync(CancellationToken stoppingToken)
        {
            while (!stoppingToken.IsCancellationRequested)
            {
                _logger.LogTrace($"Triggering JobQueueService.ProcessItemsAsync");

                await _jobQueueService.ResumeWorkItems();

                await _jobQueueService.ProcessItemsAsync();

                await Task.Delay(_options.Interval, stoppingToken);
            }
        }