Inheritance: System.ServiceModel.Channels.MessageEncoderFactory
Exemple #1
0
 public CustomTextMessageEncoder(CustomTextMessageEncoderFactory factory)
 {
     _factory        = factory;
     _writerSettings = new XmlWriterSettings {
         Encoding = Encoding.GetEncoding(factory.CharSet)
     };
     _contentType = string.Format("{0}; charset={1}", _factory.MediaType, _writerSettings.Encoding.HeaderName);
 }
 public CustomTextMessageEncoder( CustomTextMessageEncoderFactory factory )
 {
     _factory = factory;
     _writerSettings = new XmlWriterSettings { Encoding = Encoding.GetEncoding( factory.CharSet ) };
     _contentType = string.Format( "{0}; charset={1}", _factory.MediaType, _writerSettings.Encoding.HeaderName );
 }