using Greet.V1; using Grpc.Core; using System.Threading.Tasks; namespace Services { public class GreeterServiceV1 : Greeter.GreeterBase { private readonly IGreeter _greeter; public GreeterServiceV1(IGreeter greeter) { _greeter = greeter; } public override Task SayHello(HelloRequest request, ServerCallContext context) { return Task.FromResult(new HelloReply { Message = _greeter.GetHelloMessage(request.Name) }); } } }