public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); HttpTransportElement source = (HttpTransportElement)from; #pragma warning suppress 56506 // Microsoft, base.CopyFrom() validates the argument this.AllowCookies = source.AllowCookies; this.RequestInitializationTimeout = source.RequestInitializationTimeout; this.AuthenticationScheme = source.AuthenticationScheme; this.BypassProxyOnLocal = source.BypassProxyOnLocal; this.DecompressionEnabled = source.DecompressionEnabled; this.KeepAliveEnabled = source.KeepAliveEnabled; this.HostNameComparisonMode = source.HostNameComparisonMode; this.MaxBufferSize = source.MaxBufferSize; this.MaxPendingAccepts = source.MaxPendingAccepts; this.ProxyAddress = source.ProxyAddress; this.ProxyAuthenticationScheme = source.ProxyAuthenticationScheme; this.Realm = source.Realm; this.TransferMode = source.TransferMode; this.UnsafeConnectionNtlmAuthentication = source.UnsafeConnectionNtlmAuthentication; this.UseDefaultWebProxy = source.UseDefaultWebProxy; this.WebSocketSettings = source.WebSocketSettings; this.MessageHandlerFactory = source.MessageHandlerFactory; ChannelBindingUtility.CopyFrom(source.ExtendedProtectionPolicy, this.ExtendedProtectionPolicy); }
public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); HttpTransportElement element = (HttpTransportElement)from; this.AllowCookies = element.AllowCookies; this.AuthenticationScheme = element.AuthenticationScheme; this.BypassProxyOnLocal = element.BypassProxyOnLocal; this.DecompressionEnabled = element.DecompressionEnabled; this.KeepAliveEnabled = element.KeepAliveEnabled; this.HostNameComparisonMode = element.HostNameComparisonMode; this.MaxBufferSize = element.MaxBufferSize; this.ProxyAddress = element.ProxyAddress; this.ProxyAuthenticationScheme = element.ProxyAuthenticationScheme; this.Realm = element.Realm; this.TransferMode = element.TransferMode; this.UnsafeConnectionNtlmAuthentication = element.UnsafeConnectionNtlmAuthentication; this.UseDefaultWebProxy = element.UseDefaultWebProxy; ChannelBindingUtility.CopyFrom(element.ExtendedProtectionPolicy, this.ExtendedProtectionPolicy); }