Esempio n. 1
0
        public bool CreateNewReader()
        {
            if (_timer != null)
            {
                _metrics.Get(MetricName.PackageData).StopMeasure(_timer);
                _metrics.Get(MetricName.PackageData).AddResult(true);
            }
            _timer = _metrics.Get(MetricName.PackageData).StartMeasure();

            var value = _queries.Dequeue();

            _reader = value.IsValueExist ? _adapter.ExecuteQuery(value.Value) : null;
            return(_reader != null);
        }