예제 #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);
        }
예제 #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);
        }