Example #1
0
        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 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);
        }