Beispiel #1
0
        /// <inheritdoc />
        public async Task Execute(IJobExecutionContext context)
        {
            var request = _queue.Get();

            if (request is null)
            {
                return;
            }

            var response = await _service.DistributeQueryAsync(request);

            if (response.Result == QueryExecutionResult.QueryCompleted)
            {
                _storage.Add(response);
            }
        }