Пример #1
0
 public HttpTransportBindingElement()
     : base()
 {
     _allowCookies           = HttpTransportDefaults.AllowCookies;
     _authenticationScheme   = HttpTransportDefaults.AuthenticationScheme;
     _decompressionEnabled   = HttpTransportDefaults.DecompressionEnabled;
     _hostNameComparisonMode = HttpTransportDefaults.HostNameComparisonMode;
     _keepAliveEnabled       = HttpTransportDefaults.KeepAliveEnabled;
     _maxBufferSize          = TransportDefaults.MaxBufferSize;
     _maxPendingAccepts      = HttpTransportDefaults.DefaultMaxPendingAccepts;
     _method = string.Empty;
     _realm  = HttpTransportDefaults.Realm;
     _requestInitializationTimeout = HttpTransportDefaults.RequestInitializationTimeout;
     _transferMode = HttpTransportDefaults.TransferMode;
     _unsafeConnectionNtlmAuthentication = HttpTransportDefaults.UnsafeConnectionNtlmAuthentication;
     _useDefaultWebProxy = HttpTransportDefaults.UseDefaultWebProxy;
     _webSocketSettings  = HttpTransportDefaults.GetDefaultWebSocketTransportSettings();
 }
Пример #2
0
 public HttpTransportBindingElement()
     : base()
 {
     this.allowCookies           = HttpTransportDefaults.AllowCookies;
     this.authenticationScheme   = HttpTransportDefaults.AuthenticationScheme;
     this.bypassProxyOnLocal     = HttpTransportDefaults.BypassProxyOnLocal;
     this.decompressionEnabled   = HttpTransportDefaults.DecompressionEnabled;
     this.hostNameComparisonMode = HttpTransportDefaults.HostNameComparisonMode;
     this.keepAliveEnabled       = HttpTransportDefaults.KeepAliveEnabled;
     this.maxBufferSize          = TransportDefaults.MaxBufferSize;
     this.maxPendingAccepts      = HttpTransportDefaults.DefaultMaxPendingAccepts;
     this.method = string.Empty;
     this.proxyAuthenticationScheme = HttpTransportDefaults.ProxyAuthenticationScheme;
     this.proxyAddress = HttpTransportDefaults.ProxyAddress;
     this.realm        = HttpTransportDefaults.Realm;
     this.requestInitializationTimeout = HttpTransportDefaults.RequestInitializationTimeout;
     this.transferMode = HttpTransportDefaults.TransferMode;
     this.unsafeConnectionNtlmAuthentication = HttpTransportDefaults.UnsafeConnectionNtlmAuthentication;
     this.useDefaultWebProxy       = HttpTransportDefaults.UseDefaultWebProxy;
     this.webSocketSettings        = HttpTransportDefaults.GetDefaultWebSocketTransportSettings();
     this.webProxy                 = null;
     this.extendedProtectionPolicy = ChannelBindingUtility.DefaultPolicy;
 }
Пример #3
0
 public bool ShouldSerializeWebSocketSettings()
 {
     return(!this.WebSocketSettings.Equals(HttpTransportDefaults.GetDefaultWebSocketTransportSettings()));
 }