returnTask.FromResult(newHelloReply{Message=$"Hello {request.Name} from {hostName}!"});
returnTask.FromResult(newHelloReply{Message=$"Hello {request.Name} from {hostname}!"});
}
}
@ -43,7 +49,8 @@ namespace GreeterServer
[Option("port", Default = 50051, HelpText = "The port to listen on.")]
publicintPort{get;set;}
// TODO: make hostname configurable
[Option("hostname", Required = false, HelpText = "The name clients will see in responses. If not specified, machine's hostname will obtain automatically.")]