예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
        public ODataVCardWriter(VCardOutputContext outputContext)
        {
            Debug.Assert(outputContext != null, "outputContext != null");

            this.writer = outputContext.VCardWriter;
        }