public Binding Create(Endpoint serviceInterface) { var binding = new SecureWebHttpBinding(WebHttpSecurityMode.Transport) { AllowCookies = false, HostNameComparisonMode = serviceInterface.HostNameComparisonMode.ParseAsEnum(HostNameComparisonMode.WeakWildcard), MaxBufferPoolSize = serviceInterface.MaxBufferPoolSize, MaxReceivedMessageSize = serviceInterface.MaxReceivedSize, ReaderQuotas = XmlDictionaryReaderQuotas.Max, BypassProxyOnLocal = true, UseDefaultWebProxy = false, MaxBufferSize = serviceInterface.MaxBufferSize }; if (ConfigurationManagerHelper.GetValueOnKey("stardust.UseDefaultProxy") == "true") { binding.BypassProxyOnLocal = false; binding.UseDefaultWebProxy = true; } return(binding); }
public Binding Create(Endpoint serviceInterface) { var binding = new SecureWebHttpBinding(WebHttpSecurityMode.Transport) { AllowCookies = false, HostNameComparisonMode = serviceInterface.HostNameComparisonMode.ParseAsEnum(HostNameComparisonMode.WeakWildcard), MaxBufferPoolSize = serviceInterface.MaxBufferPoolSize, MaxReceivedMessageSize = serviceInterface.MaxReceivedSize, ReaderQuotas = XmlDictionaryReaderQuotas.Max, BypassProxyOnLocal = true, UseDefaultWebProxy = false, MaxBufferSize = serviceInterface.MaxBufferSize }; if (ConfigurationManagerHelper.GetValueOnKey("stardust.UseDefaultProxy") == "true") { binding.BypassProxyOnLocal = false; binding.UseDefaultWebProxy = true; } return binding; }