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