示例#1
0
        private void SendData()
        {
            var key   = _keyGenerator.Generate();
            var timer = _metric.StartMeasure();

            _metric.AddResult(_adapter.Send(key, _iterator.Current));
            _metric.StopMeasure(timer);
        }
示例#2
0
        public override bool OneDataProcess()
        {
            var key   = _keyGenerator.Generate();
            var timer = _metric.StartMeasure();

            _metric.AddResult(_adapter.Read(key));
            _metric.StopMeasure(timer);

            return(true);
        }