protected override BindingElement CreateBindingElement() { var bindingElement = new CustomTextMessageBindingElement("utf-8", "application/soap+xml"); ApplyConfiguration(bindingElement); return(bindingElement); }
private CustomTextMessageBindingElement(CustomTextMessageBindingElement binding) : this(binding.Encoding, binding.MediaType, binding.MessageVersion) { _readerQuotas = new XmlDictionaryReaderQuotas(); binding.ReaderQuotas.CopyTo(_readerQuotas); }