ODataBatchHandler.CreateResponseMessageAsync Method (IEnumerable<ODataBatchResponseItem>, HttpRequestMessage, CancellationToken)
Creates the batch response message.
Namespace: System.Web.OData.Batch
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual Task<HttpResponseMessage> CreateResponseMessageAsync(
IEnumerable<ODataBatchResponseItem> responses,
HttpRequestMessage request,
CancellationToken cancellationToken
)
public:
virtual Task<HttpResponseMessage^>^ CreateResponseMessageAsync(
IEnumerable<ODataBatchResponseItem^>^ responses,
HttpRequestMessage^ request,
CancellationToken cancellationToken
)
abstract CreateResponseMessageAsync :
responses:IEnumerable<ODataBatchResponseItem> *
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
override CreateResponseMessageAsync :
responses:IEnumerable<ODataBatchResponseItem> *
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Public Overridable Function CreateResponseMessageAsync (
responses As IEnumerable(Of ODataBatchResponseItem),
request As HttpRequestMessage,
cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)
Parameters
responses
Type: System.Collections.Generic.IEnumerable<ODataBatchResponseItem>The responses for the batch requests.
request
Type: System.Net.Http.HttpRequestMessageThe original request containing all the batch requests.
cancellationToken
Type: System.Threading.CancellationTokenThe token to monitor for cancellation requests.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The batch response message.
See Also
ODataBatchHandler Class
System.Web.OData.Batch Namespace
Return to top