コード例 #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;
 }