コード例 #1
0
        /// <summary>
        /// Asynchronously creates an <see cref="ODataAsynchronousResponseMessage"/> for writing an operation of an async response - implementation of the actual functionality.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.
        /// The value of the TResult parameter contains an <see cref="ODataAsynchronousResponseMessage"/>
        /// that can be used to write the response.</returns>
        private async Task <ODataAsynchronousResponseMessage> CreateResponseMessageImplementationAsync()
        {
            var responseMessage = await ODataAsynchronousResponseMessage.CreateMessageForWritingAsync(
                rawOutputContext.OutputStream,
                this.WriteInnerEnvelopeAsync,
                this.container).ConfigureAwait(false);

            responseMessageCreated = true;

            return(responseMessage);
        }