public string ShowHello(RpcContractNetty.HelloResult hello) { Console.WriteLine($"{hello.Name} call SayHello![{ServiceName}]"); var result = $"name:{hello.Name};gender:{hello.Gender};avatar:{hello.Head};From[{ServiceName}]"; return(result); }
public RpcContractNetty.HelloResult SayHello(string name) { Console.WriteLine($"{name} call SayHello![{ServiceName}]"); var result = new RpcContractNetty.HelloResult { Name = $"{name};From[{ServiceName}]", Gender = "male", Head = $"head.png" }; return(result); }