/// <summary>
 /// Creates an instance of the BindingElement for the HTTP transport
 /// </summary>
 /// <param name="cfg"></param>
 public HttpTransportBindingElement(HttpTransportBindingConfig cfg)
 {
     m_endpointUri  = cfg.EndpointAddress;
     m_transportUri = cfg.EndpointAddress;
     m_serviceUrn   = cfg.ServiceUrn;
     m_persistConn  = cfg.PersistentConnection;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates an instance of the WS2007HttpBinding class
 /// </summary>
 /// <param name="httpConfig">The configuration associated with this binding.</param>
 /// <param name="bindingParams">The additional elements associated with this binding.</param>
 public WS2007HttpBinding(HttpTransportBindingConfig httpConfig, ArrayList bindingParams)
     : base(new HttpTransportBindingElement(httpConfig), new TextMessageEncodingBindingElement())
 {
     if (bindingParams != null)
     {
         base.Elements.SetBindingConfiguration(bindingParams);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Creates an instance of the WS2007HttpBinding class
 /// </summary>
 /// <param name="httpConfig">The configuration associated with this binding.</param>
 /// <param name="bindingParams">The additional elements associated with this binding.</param>
 public WS2007HttpBinding( HttpTransportBindingConfig httpConfig, ArrayList bindingParams )
     : base(new HttpTransportBindingElement(httpConfig), new TextMessageEncodingBindingElement())   
 {
     if(bindingParams != null)
     {
         base.Elements.SetBindingConfiguration(bindingParams);
     }
 }
        /// <summary>
        /// Sets the configuration for the HTTP transport binding
        /// </summary>
        /// <param name="cfg">The configuration for this binding.</param>
        protected override void OnSetBindingConfiguration(object cfg)
        {
            HttpTransportBindingConfig config = cfg as HttpTransportBindingConfig;

            if (config != null)
            {
                m_endpointUri = config.EndpointAddress;
                m_serviceUrn  = config.ServiceUrn;
            }
        }
Esempio n. 5
0
 /// <summary>
 /// Creates an instance of the WS2007HttpBinding class
 /// </summary>
 /// <param name="httpConfig">The configuration associated with this binding.</param>
 public WS2007HttpBinding(HttpTransportBindingConfig httpConfig) : this(httpConfig, null)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Creates an instance of the WS2007HttpBinding class
 /// </summary>
 /// <param name="httpConfig">The configuration associated with this binding.</param>
 public WS2007HttpBinding( HttpTransportBindingConfig httpConfig ) : this( httpConfig, null )
 {
 }
 /// <summary>
 /// Creates an instance of the BindingElement for the HTTP transport
 /// </summary>
 /// <param name="cfg"></param>
 public HttpTransportBindingElement( HttpTransportBindingConfig cfg )
 {
     m_endpointUri= cfg.EndpointAddress;
     m_transportUri = cfg.EndpointAddress;
     m_serviceUrn = cfg.ServiceUrn;
     m_persistConn = cfg.PersistentConnection;
     
 }
 /// <summary>
 /// Creates an instance of the BindingElement for the HTTP transport
 /// </summary>
 /// <param name="cfg"></param>
 public HttpTransportBindingElement( HttpTransportBindingConfig cfg )
 {
     m_endpointUri= cfg.EndpointAddress;
     m_serviceUrn = cfg.ServiceUrn;
 }
 /// <summary>
 /// Creates an instance of the BindingElement for the HTTP transport
 /// </summary>
 /// <param name="cfg"></param>
 public HttpTransportBindingElement(HttpTransportBindingConfig cfg)
 {
     m_endpointUri = cfg.EndpointAddress;
     m_serviceUrn  = cfg.ServiceUrn;
 }