public HelloResponseMessage Hello(HelloGreetingMessage msg)
 {
     Console.WriteLine("Caller Sent"+ msg.Greeting);
     HelloResponseMessage responseMsg = new HelloResponseMessage();
     responseMsg.Response = "Service received: " + msg.Greeting;
     responseMsg.ExtraValues = string.Format("Served by Object {0}",this.GetHashCode().ToString());
     Console.WriteLine("Returned Response Message.");
     return responseMsg;
 }
Ejemplo n.º 2
0
        public HelloResponseMessage Hello(HelloGreetingMessage msg)
        {
            Console.WriteLine("Caller Sent" + msg.Greeting);
            HelloResponseMessage responseMsg = new HelloResponseMessage();

            responseMsg.Response    = "Service received: " + msg.Greeting;
            responseMsg.ExtraValues = string.Format("Served by Object {0}", this.GetHashCode().ToString());
            Console.WriteLine("Returned Response Message.");
            return(responseMsg);
        }