コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }