Example #1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            var c = (WebMessageEncodingElement)from;

            MaxReadPoolSize  = c.MaxReadPoolSize;
            MaxWritePoolSize = c.MaxWritePoolSize;
            ReaderQuotas.CopyFrom(c.ReaderQuotas);
            WriteEncoding = c.WriteEncoding;
        }
Example #2
0
        public override void CopyFrom(ServiceModelExtensionElement element)
        {
            var b = (TextMessageEncodingElement)element;

            MaxReadPoolSize  = b.MaxReadPoolSize;
            MaxWritePoolSize = b.MaxWritePoolSize;
            MessageVersion   = b.MessageVersion;
            WriteEncoding    = b.WriteEncoding;

            ReaderQuotas.CopyFrom(b.ReaderQuotas);
        }