Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }