Пример #1
0
        /// <summary>
        /// Creates an async writer.
        /// </summary>
        /// <returns>The newly created async writer.</returns>
        private ODataAsynchronousWriter CreateODataAsynchronousWriterImplementation()
        {
            // Async writer needs the default encoding to not use the preamble.
            this.encoding = this.encoding ?? MediaTypeUtils.EncodingUtf8NoPreamble;
            ODataAsynchronousWriter asyncWriter = new ODataAsynchronousWriter(this);

            this.outputInStreamErrorListener = asyncWriter;
            return(asyncWriter);
        }
Пример #2
0
 /// <summary>
 /// Creates an async writer.
 /// </summary>
 /// <returns>The newly created async writer.</returns>
 private ODataAsynchronousWriter CreateODataAsynchronousWriterImplementation()
 {
     // Async writer needs the default encoding to not use the preamble.
     this.encoding = this.encoding ?? MediaTypeUtils.EncodingUtf8NoPreamble;
     ODataAsynchronousWriter asyncWriter = new ODataAsynchronousWriter(this);
     this.outputInStreamErrorListener = asyncWriter;
     return asyncWriter;
 }