Share via


DefaultODataBatchHandler.ParseBatchRequestsAsync Method

Definition

Overloads

ParseBatchRequestsAsync(HttpContext)

Converts the incoming OData batch request into a collection of request messages.

ParseBatchRequestsAsync(HttpRequestMessage, CancellationToken)

Converts the incoming OData batch request into a collection of request messages.

ParseBatchRequestsAsync(HttpContext)

Converts the incoming OData batch request into a collection of request messages.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>> ParseBatchRequestsAsync(Microsoft.AspNetCore.Http.HttpContext context);
abstract member ParseBatchRequestsAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>>
override this.ParseBatchRequestsAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>>
Public Overridable Function ParseBatchRequestsAsync (context As HttpContext) As Task(Of IList(Of ODataBatchRequestItem))

Parameters

context
HttpContext

The context containing the batch request messages.

Returns

A collection of ODataBatchRequestItem.

Applies to

ParseBatchRequestsAsync(HttpRequestMessage, CancellationToken)

Converts the incoming OData batch request into a collection of request messages.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>> ParseBatchRequestsAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
abstract member ParseBatchRequestsAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>>
override this.ParseBatchRequestsAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>>
Public Overridable Function ParseBatchRequestsAsync (request As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of IList(Of ODataBatchRequestItem))

Parameters

request
HttpRequestMessage

The request containing the batch request messages.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A collection of ODataBatchRequestItem.

Applies to