Exemplo n.º 1
0
 /// <summary>Sends an one way.</summary>
 ///
 /// <param name="message">The message.</param>
 public void SendOneWay(Message message)
 {
     using (var client = new GenericProxy <IOneWay>(SyncReply))
     {
         client.Proxy.SendOneWay(message);
     }
 }
Exemplo n.º 2
0
 /// <summary>Send this message.</summary>
 ///
 /// <param name="message">The message.</param>
 ///
 /// <returns>A Message.</returns>
 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);
     }
 }