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);
            TcpTransportElement element = (TcpTransportElement)from;

            this.ListenBacklog      = element.ListenBacklog;
            this.PortSharingEnabled = element.PortSharingEnabled;
            this.TeredoEnabled      = element.TeredoEnabled;
            this.ConnectionPoolSettings.CopyFrom(element.ConnectionPoolSettings);
            ChannelBindingUtility.CopyFrom(element.ExtendedProtectionPolicy, this.ExtendedProtectionPolicy);
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            TcpTransportElement source = (TcpTransportElement)from;

#pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument
            this.ListenBacklog      = source.ListenBacklog;
            this.PortSharingEnabled = source.PortSharingEnabled;
            this.TeredoEnabled      = source.TeredoEnabled;
            this.ConnectionPoolSettings.CopyFrom(source.ConnectionPoolSettings);
            ChannelBindingUtility.CopyFrom(source.ExtendedProtectionPolicy, this.ExtendedProtectionPolicy);
        }
Example #4
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            TcpTransportElement source = (TcpTransportElement)from;

            this.ListenBacklog      = source.ListenBacklog;
            this.PortSharingEnabled = source.PortSharingEnabled;
            this.TeredoEnabled      = source.TeredoEnabled;
            this.ConnectionPoolSettings.CopyFrom(source.ConnectionPoolSettings);
#if DESKTOP
            ChannelBindingUtility.CopyFrom(source.ExtendedProtectionPolicy, this.ExtendedProtectionPolicy);
#endif
        }
        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);
        }