コード例 #1
0
ファイル: ODataVCardReader.cs プロジェクト: zhonli/odata.net
        public ODataVCardReader(VCardInputContext inputContext)
        {
            Debug.Assert(inputContext != null, "inputContext != null");

            this.reader = inputContext.VCardReader;
            this.item   = null;
            this.state  = ODataReaderState.Start;
            this.throwExceptionOnDuplicatedPropertyNames = inputContext.ThrowExceptionOnDuplicatedPropertyNames;
        }
コード例 #2
0
ファイル: VCardInputContext.cs プロジェクト: zhonli/odata.net
 public VCardInputContext(
     ODataFormat format,
     ODataMessageInfo messageInfo,
     ODataMessageReaderSettings messageReaderSettings)
     : base(format, messageInfo, messageReaderSettings)
 {
     this.stream = messageInfo.MessageStream;
     this.reader = new VCardReader(new StreamReader(messageInfo.MessageStream, messageInfo.Encoding));
     this.throwExceptionOnDuplicatedPropertyNames = false;
 }
コード例 #3
0
 public VCardInputContext(ODataFormat format,
     Stream messageStream,
     ODataMediaType contentType,
     Encoding encoding,
     ODataMessageReaderSettings messageReaderSettings,
     bool readingResponse,
     bool synchronous,
     IEdmModel model,
     IODataUrlResolver urlResolver)
     : base(format, messageReaderSettings, readingResponse, synchronous, model, urlResolver)
 {
     this.stream = messageStream;
     this.reader = new VCardReader(new StreamReader(messageStream, encoding));
     this.throwExceptionOnDuplicatedPropertyNames = false;
 }
コード例 #4
0
 public VCardInputContext(ODataFormat format,
                          Stream messageStream,
                          ODataMediaType contentType,
                          Encoding encoding,
                          ODataMessageReaderSettings messageReaderSettings,
                          bool readingResponse,
                          bool synchronous,
                          IEdmModel model,
                          IODataUrlResolver urlResolver)
     : base(format, messageReaderSettings, readingResponse, synchronous, model, urlResolver)
 {
     this.stream = messageStream;
     this.reader = new VCardReader(new StreamReader(messageStream, encoding));
     this.throwExceptionOnDuplicatedPropertyNames = false;
 }