Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="rawOutputContext">The output context to write to.</param>
        internal ODataAsynchronousWriter(ODataRawOutputContext rawOutputContext)
        {
            Debug.Assert(rawOutputContext != null, "rawOutputContext != null");

            this.rawOutputContext = rawOutputContext;
            this.rawOutputContext.InitializeRawValueWriter();
        }
Пример #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="rawOutputContext">The output context to write to.</param>
        internal ODataAsynchronousWriter(ODataRawOutputContext rawOutputContext)
        {
            Debug.Assert(rawOutputContext != null, "rawOutputContext != null");

            this.rawOutputContext = rawOutputContext;
            this.rawOutputContext.InitializeRawValueWriter();
        }
Пример #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="rawOutputContext">The output context to write to.</param>
        /// <param name="batchBoundary">The boundary string for the batch structure itself.</param>
        internal ODataBatchWriter(ODataRawOutputContext rawOutputContext, string batchBoundary)
        {
            Debug.Assert(rawOutputContext != null, "rawOutputContext != null");
            Debug.Assert(
                rawOutputContext.MessageWriterSettings.PayloadBaseUri == null || rawOutputContext.MessageWriterSettings.PayloadBaseUri.IsAbsoluteUri,
                "We should have validated that PayloadBaseUri is absolute.");

            ExceptionUtils.CheckArgumentNotNull(batchBoundary, "batchBoundary");

            this.rawOutputContext = rawOutputContext;
            this.batchBoundary = batchBoundary;
            this.urlResolver = new ODataBatchUrlResolver(rawOutputContext.UrlResolver);
            this.rawOutputContext.InitializeRawValueWriter();
        }