Example #1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            ConnectionOrientedTransportElement element = (ConnectionOrientedTransportElement)from;

            this.ConnectionBufferSize         = element.ConnectionBufferSize;
            this.HostNameComparisonMode       = element.HostNameComparisonMode;
            this.ChannelInitializationTimeout = element.ChannelInitializationTimeout;
            this.MaxBufferSize         = element.MaxBufferSize;
            this.MaxPendingConnections = element.MaxPendingConnections;
            this.MaxOutputDelay        = element.MaxOutputDelay;
            this.MaxPendingAccepts     = element.MaxPendingAccepts;
            this.TransferMode          = element.TransferMode;
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            ConnectionOrientedTransportElement source = (ConnectionOrientedTransportElement)from;

#pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument
            this.ConnectionBufferSize         = source.ConnectionBufferSize;
            this.HostNameComparisonMode       = source.HostNameComparisonMode;
            this.ChannelInitializationTimeout = source.ChannelInitializationTimeout;
            this.MaxBufferSize         = source.MaxBufferSize;
            this.MaxPendingConnections = source.MaxPendingConnections;
            this.MaxOutputDelay        = source.MaxOutputDelay;
            this.MaxPendingAccepts     = source.MaxPendingAccepts;
            this.TransferMode          = source.TransferMode;
        }