internal VCardOutputContext( ODataFormat format, ODataMessageInfo messageInfo, ODataMessageWriterSettings messageWriterSettings) : base(format, messageInfo, messageWriterSettings) { this.writer = new VCardWriter(new StreamWriter(messageInfo.MessageStream, messageInfo.Encoding)); this.outputStream = messageInfo.MessageStream; }
internal VCardOutputContext( ODataFormat format, Stream messageStream, Encoding encoding, ODataMessageWriterSettings messageWriterSettings, bool writingResponse, bool synchronous, IEdmModel model, IODataUrlResolver urlResolver) : base(format, messageWriterSettings, writingResponse, synchronous, model, urlResolver) { this.writer = new VCardWriter(new StreamWriter(messageStream, encoding)); this.outputStream = messageStream; }
public ODataVCardWriter(VCardOutputContext outputContext) { Debug.Assert(outputContext != null, "outputContext != null"); this.writer = outputContext.VCardWriter; }