public override Task <CounterReply> IncrementCount(Google.Protobuf.WellKnownTypes.Empty request, ServerCallContext context)
 {
     _logger.LogInformation("Increment count by 1");
     _counter.Increment(1);
     return(Task.FromResult(new CounterReply {
         Count = _counter.Count
     }));
 }
Exemple #2
0
        public override Task <CounterReply> IncrementCount(Empty request, ServerCallContext context)
        {
            _logger.LogInformation("Incrementing count by 1");
            _counter.Increment(1);

            return(Task.FromResult(new CounterReply {
                Count = _counter.Count
            }));
        }