public override Task <HelloReply1> SayHello(HelloRequest1 request, ServerCallContext context) { return(Task.FromResult(new HelloReply1 { Message = "Hello " + request.Name + " From server 1" })); }
public override Task <HelloReply1> SayHelloPost(HelloRequest1 request, ServerCallContext context) { return(Task.FromResult(new HelloReply1 { Message = $"HelloPost {request.Name} {request.Code}", Status = "Post正常" })); }
public override Task <HelloReply1> SayHello(HelloRequest1 request, ServerCallContext context) { // Greeter.GreeterBase.SayHello(HelloRequest request, ServerCallContext context); return(Task.FromResult(new HelloReply1 { Message = "Hello " + request.Name })); }
public override Task <HelloReply1> SayHello1(HelloRequest1 request, ServerCallContext context) { var message = _userService.GetUserName(_mapper.Map <HelloRequest1Dto>(request)); return(Task.FromResult(new HelloReply1 { Message = "Hello1 " + message, Status = "正常1" })); }