public async Task <DotNetMetricResponse> Handle(DotNetMetricGetByPeriodFromAgentQuery request, CancellationToken cancellationToken)
            {
                var result = await Task.Run(() =>
                {
                    var metricsList = _repository.GetByPeriodFormAgent(request.AgentId, request.FromTime, request.ToTime);

                    var response = new DotNetMetricResponse();

                    response.Metrics.AddRange(_mapper.Map <List <DotNetMetricDto> >(metricsList));

                    return(response);
                });

                return(result);
            }