2 instantiations of TextMessageEncoderFactory
System.ServiceModel (2)
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (1)
166return new TextMessageEncoderFactory(MessageVersion, WriteEncoding, this.MaxReadPoolSize, this.MaxWritePoolSize, this.ReaderQuotas);
System\ServiceModel\Channels\TransportDefaults.cs (1)
373return new TextMessageEncoderFactory(MessageVersion.Default, TextEncoderDefaults.Encoding, EncoderDefaults.MaxReadPoolSize, EncoderDefaults.MaxWritePoolSize, EncoderDefaults.ReaderQuotas);
20 references to TextMessageEncoderFactory
System.ServiceModel (20)
System\ServiceModel\Channels\MtomMessageEncoder.cs (11)
94internal TextMessageEncoderFactory.ContentEncoding[] contentEncodingMap; 125this.contentEncodingMap = TextMessageEncoderFactory.Soap12Content; 129this.contentEncodingMap = TextMessageEncoderFactory.Soap11Content; 197string textMediaType = TextMessageEncoderFactory.GetMediaType(version); 198string textContentType = TextMessageEncoderFactory.GetContentType(textMediaType, writeEncoding); 220return (version.Envelope == EnvelopeVersion.Soap12) ? TextMessageEncoderFactory.Soap12MediaType : TextMessageEncoderFactory.Soap11MediaType; 553((IXmlTextReaderInitializer)xmlReader).SetInput(stream, TextMessageEncoderFactory.GetEncodingFromContentType(contentType, this.contentEncodingMap), this.readerQuotas, onStreamedReaderClose); 557xmlReader = XmlDictionaryReader.CreateTextReader(stream, TextMessageEncoderFactory.GetEncodingFromContentType(contentType, this.contentEncodingMap), this.readerQuotas, onStreamedReaderClose); 663((IXmlTextReaderInitializer)xmlReader).SetInput(buffer.Array, buffer.Offset, buffer.Count, TextMessageEncoderFactory.GetEncodingFromContentType(ContentType, this.messageEncoder.contentEncodingMap), this.Quotas, onClose); 667xmlReader = XmlDictionaryReader.CreateTextReader(buffer.Array, buffer.Offset, buffer.Count, TextMessageEncoderFactory.GetEncodingFromContentType(ContentType, this.messageEncoder.contentEncodingMap), this.Quotas, onClose);
System\ServiceModel\Channels\TextMessageEncoder.cs (9)
72mediaType = TextMessageEncoderFactory.Soap12MediaType; 76mediaType = TextMessageEncoderFactory.Soap11MediaType; 80mediaType = TextMessageEncoderFactory.XmlMediaType; 97Encoding[] readEncodings = TextMessageEncoderFactory.GetSupportedEncodings(); 293this.mediaType = TextMessageEncoderFactory.GetMediaType(version); 294this.contentType = TextMessageEncoderFactory.GetContentType(mediaType, writeEncoding); 297contentEncodingMap = TextMessageEncoderFactory.Soap12Content; 301contentEncodingMap = TextMessageEncoderFactory.Soap11Content; 305contentEncodingMap = TextMessageEncoderFactory.SoapNoneContent;