public override T GetProperty <T>(BindingContext context) { if (typeof(T) == typeof(ISecurityCapabilities)) { return((T)(object)new HttpBindingProperties(this)); } if (typeof(T) == typeof(IBindingDeliveryCapabilities)) { return((T)(object)new HttpBindingProperties(this)); } if (typeof(T) == typeof(TransferMode)) { return((T)(object)TransferMode); } if (typeof(T) == typeof(IHttpCookieContainerManager)) { if (!AllowCookies) { return(null); } if (cookie_manager == null) { cookie_manager = new HttpCookieContainerManager(); } return((T)(object)cookie_manager); } return(base.GetProperty <T>(context)); }
protected HttpCookieContainerBindingElement(HttpCookieContainerBindingElement elementToBeCloned) { if (elementToBeCloned == null) { throw new ArgumentNullException("elementToBeCloned"); } manager = new HttpCookieContainerManager(elementToBeCloned.manager); }
protected HttpTransportBindingElement(HttpTransportBindingElement other) : base(other) { allow_cookies = other.allow_cookies; bypass_proxy_on_local = other.bypass_proxy_on_local; unsafe_ntlm_auth = other.unsafe_ntlm_auth; use_default_proxy = other.use_default_proxy; keep_alive_enabled = other.keep_alive_enabled; max_buffer_size = other.max_buffer_size; host_cmp_mode = other.host_cmp_mode; proxy_address = other.proxy_address; realm = other.realm; transfer_mode = other.transfer_mode; timeouts = other.timeouts; auth_scheme = other.auth_scheme; proxy_auth_scheme = other.proxy_auth_scheme; DecompressionEnabled = other.DecompressionEnabled; LegacyExtendedProtectionPolicy = other.LegacyExtendedProtectionPolicy; ExtendedProtectionPolicy = other.ExtendedProtectionPolicy; cookie_manager = other.cookie_manager; }
public HttpCookieContainerManager(HttpCookieContainerManager original) { CookieContainer = original.CookieContainer; }
public HttpCookieContainerBindingElement() { manager = new HttpCookieContainerManager(); }