예제 #1
0
 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));
 }
예제 #2
0
 protected HttpCookieContainerBindingElement(HttpCookieContainerBindingElement elementToBeCloned)
 {
     if (elementToBeCloned == null)
     {
         throw new ArgumentNullException("elementToBeCloned");
     }
     manager = new HttpCookieContainerManager(elementToBeCloned.manager);
 }
예제 #3
0
 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;
 }
예제 #4
0
 public HttpCookieContainerManager(HttpCookieContainerManager original)
 {
     CookieContainer = original.CookieContainer;
 }
예제 #5
0
 public HttpCookieContainerBindingElement()
 {
     manager = new HttpCookieContainerManager();
 }