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);
        }
예제 #2
0
        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);
        }
예제 #3
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
        }