protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                try
                {
                    if (this.AvroReader != null)
                    {
                        this.AvroReader.Dispose();
                    }

                    if (this.stream != null)
                    {
                        this.stream.Dispose();
                    }
                }
                finally
                {
                    this.AvroReader = null;
                    this.stream     = null;
                }
            }

            base.Dispose(disposing);
        }
        public ODataAvroCollectionReader(ODataAvroInputContext inputContext)
        {
            Debug.Assert(inputContext != null, "inputContext != null");

            this.reader     = inputContext.AvroReader;
            this.enumerator = null;
            this.state      = ODataCollectionReaderState.Start;
        }
        public ODataAvroCollectionReader(ODataAvroInputContext inputContext)
        {
            Debug.Assert(inputContext != null, "inputContext != null");

            this.reader = inputContext.AvroReader;
            this.enumerator = null;
            this.state = ODataCollectionReaderState.Start;
        }
Exemple #4
0
        public ODataAvroReader(ODataAvroInputContext inputContext, bool readingFeed, object currentObject = null)
        {
            Debug.Assert(inputContext != null, "inputContext != null");

            this.reader        = inputContext.AvroReader;
            this.readingFeed   = readingFeed;
            this.currentObject = currentObject;

            this.item             = null;
            this.recordEnumerator = null;
            this.state            = ODataReaderState.Start;
        }
        public ODataAvroReader(ODataAvroInputContext inputContext, bool readingFeed, object currentObject = null)
        {
            Debug.Assert(inputContext != null, "inputContext != null");

            this.reader = inputContext.AvroReader;
            this.readingFeed = readingFeed;
            this.currentObject = currentObject;

            this.item = null;
            this.recordEnumerator = null;
            this.state = ODataReaderState.Start;
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                try
                {
                    if (this.AvroReader != null)
                    {
                        this.AvroReader.Dispose();
                    }

                    if (this.stream != null)
                    {
                        this.stream.Dispose();
                    }

                }
                finally
                {
                    this.AvroReader = null;
                    this.stream = null;
                }
            }

            base.Dispose(disposing);
        }