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 })); }
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 })); }