Пример #1
0
        public StatisticsReply GetStatistics()
        {
            Channel channel = new Channel("localhost:" + "50051", ChannelCredentials.Insecure);
            var     client  = new Statistics.StatisticsClient(channel);
            var     reply   = client.GetStatistics(new StatisticsRequest {
                Name = "StatisticsClient"
            });

            return(reply);
        }