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; }
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); }