Created
May 5, 2014 22:05
-
-
Save Isaac-Kleinman/9b2cbfd08438cd66ea0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ServiceModel.Channels; | |
namespace eMedNySOAPClient | |
{ | |
public class CustomTextMessageEncoderFactory : MessageEncoderFactory | |
{ | |
private MessageEncoder encoder; | |
internal CustomTextMessageEncoderFactory(string contentType, MessageVersion msgVersion) | |
{ | |
this.encoder = new CustomTextMessageEncoder(contentType, msgVersion); | |
} | |
public override MessageEncoder Encoder | |
{ | |
get | |
{ | |
return this.encoder; | |
} | |
} | |
public override MessageVersion MessageVersion | |
{ | |
get | |
{ | |
return this.encoder.MessageVersion; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment