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

                    var response = new NetworkMetricResponse();

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

                    return(response);
                });

                return(result);
            }