public void SendOneWay(Message message) { using (var client = new GenericProxy <IOneWay>(SyncReply)) { client.Proxy.SendOneWay(message); } }
public Message Send(Message message) { using (var client = new GenericProxy <ISyncReply>(SyncReply)) { var response = client.Proxy.Send(message); return(response); } }
public Message Send(Message message) { using (var client = new GenericProxy<ISyncReply>(SyncReply)) { // CCB Custom...add behavior to propagate cookies across SOAP method calls if (StoreCookies) client.ChannelFactory.Endpoint.Behaviors.Add(new CookieManagerEndpointBehavior()); var response = client.Proxy.Send(message); return response; } }