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; }
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; }
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; }