/// <summary> /// Returns an <see cref="ODataAsynchronousResponseMessage"/> for reading the content of an async response - implementation of the actual functionality. /// </summary> /// <returns>The message that can be used to read the response.</returns> private ODataAsynchronousResponseMessage CreateResponseMessageImplementation() { int statusCode; IDictionary <string, string> headers; this.ReadInnerEnvelope(out statusCode, out headers); return(ODataAsynchronousResponseMessage.CreateMessageForReading(this.rawInputContext.Stream, statusCode, headers, this.container)); }
/// <summary> /// Returns an <see cref="ODataAsynchronousResponseMessage"/> for reading the content of an async response - implementation of the actual functionality. /// </summary> /// <returns> /// A task that represents the asynchronous read operation. /// The value of the TResult parameter contains the message that can be used to read the response. /// </returns> private async Task <ODataAsynchronousResponseMessage> CreateResponseMessageImplementationAsync() { Tuple <int, Dictionary <string, string> > readInnerEnvelopeResult = await this.ReadInnerEnvelopeAsync() .ConfigureAwait(false); int statusCode = readInnerEnvelopeResult.Item1; Dictionary <string, string> headers = readInnerEnvelopeResult.Item2; return(ODataAsynchronousResponseMessage.CreateMessageForReading(this.rawInputContext.Stream, statusCode, headers, this.container)); }