protected override void InitializeFrom(BindingElement bindingElement)
        {
            base.InitializeFrom(bindingElement);
            RelayedOnewayTransportBindingElement relayedOnewayTransportBindingElement = (RelayedOnewayTransportBindingElement)bindingElement;

            this.ConnectionMode = relayedOnewayTransportBindingElement.ConnectionMode;
            this.RelayClientAuthenticationType = relayedOnewayTransportBindingElement.RelayClientAuthenticationType;
            this.ConnectionPoolSettings.InitializeFrom(relayedOnewayTransportBindingElement.ConnectionPoolSettings);
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            RelayedOnewayTransportElement relayedOnewayTransportElement = (RelayedOnewayTransportElement)from;

            this.ConnectionMode = relayedOnewayTransportElement.ConnectionMode;
            this.RelayClientAuthenticationType = relayedOnewayTransportElement.RelayClientAuthenticationType;
            this.ConnectionPoolSettings.CopyFrom(relayedOnewayTransportElement.ConnectionPoolSettings);
        }
        protected override void InitializeFrom(BindingElement bindingElement)
        {
            base.InitializeFrom(bindingElement);
            TcpRelayTransportBindingElement tcpRelayTransportBindingElement = (TcpRelayTransportBindingElement)bindingElement;

            this.ListenBacklog  = tcpRelayTransportBindingElement.ListenBacklog;
            this.ConnectionMode = tcpRelayTransportBindingElement.ConnectionMode;
            this.RelayClientAuthenticationType = tcpRelayTransportBindingElement.RelayClientAuthenticationType;
            this.ConnectionPoolSettings.InitializeFrom(tcpRelayTransportBindingElement.ConnectionPoolSettings);
            this.IsDynamic = tcpRelayTransportBindingElement.IsDynamic;
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            TcpRelayTransportElement tcpRelayTransportElement = (TcpRelayTransportElement)from;

            this.ListenBacklog  = tcpRelayTransportElement.ListenBacklog;
            this.ConnectionMode = tcpRelayTransportElement.ConnectionMode;
            this.RelayClientAuthenticationType = tcpRelayTransportElement.RelayClientAuthenticationType;
            this.ConnectionPoolSettings.CopyFrom(tcpRelayTransportElement.ConnectionPoolSettings);
            this.IsDynamic = tcpRelayTransportElement.IsDynamic;
        }