Skip to main content

Definition

Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet.Batch Inheritance: Microsoft.AspNet.OData.Batch.DefaultODataBatchHandler

Syntax

Microsoft.Restier.AspNet.Batch.RestierBatchHandler

Summary

Default implementation of ODataBatchHandler in RESTier.

Constructors

.ctor

Initializes a new instance of the RestierBatchHandler class.

Syntax

public RestierBatchHandler(System.Web.Http.HttpServer httpServer)

Parameters

NameTypeDescription
httpServerSystem.Web.Http.HttpServerThe HTTP server instance.

Methods

ParseBatchRequestsAsync Override

Asynchronously parses the batch requests.

Syntax

public override System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>> ParseBatchRequestsAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
requestSystem.Net.Http.HttpRequestMessageThe HTTP request that contains the batch requests.
cancellationTokenSystem.Threading.CancellationTokenThe cancellation token.

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.OData.Batch.ODataBatchRequestItem>> The task object that represents this asynchronous operation.