Share via


DefaultODataBatchHandler.ExecuteRequestMessagesAsync Method

Definition

Overloads

ExecuteRequestMessagesAsync(IEnumerable<ODataBatchRequestItem>, RequestDelegate)

Executes the OData batch requests.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>> ExecuteRequestMessagesAsync(System.Collections.Generic.IEnumerable<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> requests, Microsoft.AspNetCore.Http.RequestDelegate handler);
abstract member ExecuteRequestMessagesAsync : seq<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> * Microsoft.AspNetCore.Http.RequestDelegate -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>>
override this.ExecuteRequestMessagesAsync : seq<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> * Microsoft.AspNetCore.Http.RequestDelegate -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>>
Public Overridable Function ExecuteRequestMessagesAsync (requests As IEnumerable(Of ODataBatchRequestItem), handler As RequestDelegate) As Task(Of IList(Of ODataBatchResponseItem))

Parameters

requests
IEnumerable<ODataBatchRequestItem>

The collection of OData batch requests.

handler
RequestDelegate

The handler for processing a message.

Returns

A collection of ODataBatchResponseItem for the batch requests.

Applies to

ExecuteRequestMessagesAsync(IEnumerable<ODataBatchRequestItem>, CancellationToken)

Executes the OData batch requests.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>> ExecuteRequestMessagesAsync(System.Collections.Generic.IEnumerable<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> requests, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteRequestMessagesAsync : seq<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>>
override this.ExecuteRequestMessagesAsync : seq<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>>
Public Overridable Function ExecuteRequestMessagesAsync (requests As IEnumerable(Of ODataBatchRequestItem), cancellationToken As CancellationToken) As Task(Of IList(Of ODataBatchResponseItem))

Parameters

requests
IEnumerable<ODataBatchRequestItem>

The collection of OData batch requests.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A collection of ODataBatchResponseItem for the batch requests.

Applies to