예제 #1
0
        protected override BindingElement CreateBindingElement()
        {
            CustomTextMessageBindingElement customTextMessageBindingElement = new CustomTextMessageBindingElement();

            this.ApplyConfiguration(customTextMessageBindingElement);
            return(customTextMessageBindingElement);
        }
예제 #2
0
        public override void ApplyConfiguration(BindingElement bindingElement)
        {
            base.ApplyConfiguration(bindingElement);
            CustomTextMessageBindingElement customTextMessageBindingElement = (CustomTextMessageBindingElement)bindingElement;

            customTextMessageBindingElement.MessageVersion = this.MessageVersion;
            customTextMessageBindingElement.MediaType      = this.MediaType;
            customTextMessageBindingElement.Encoding       = this.Encoding;
            this.ApplyConfiguration(customTextMessageBindingElement.ReaderQuotas);
        }
예제 #3
0
 private CustomTextMessageBindingElement(CustomTextMessageBindingElement binding) : this(binding.Encoding, binding.MediaType, binding.MessageVersion)
 {
     this.readerQuotas = new XmlDictionaryReaderQuotas();
     binding.ReaderQuotas.CopyTo(this.readerQuotas);
 }