Пример #1
0
 public void SendOneWay(Message message)
 {
     using (var client = new GenericProxy <IOneWay>(SyncReply))
     {
         client.Proxy.SendOneWay(message);
     }
 }
Пример #2
0
 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);
     }
 }