Share via


DefaultODataBatchHandler Class

 

Default implementation of ODataBatchHandler for handling OData batch request.

Namespace:   System.Web.OData.Batch
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Net.Http.HttpMessageHandler
    System.Web.Http.Batch.HttpBatchHandler
      System.Web.OData.Batch.ODataBatchHandler
        System.Web.OData.Batch.DefaultODataBatchHandler

Syntax

public class DefaultODataBatchHandler : ODataBatchHandler
public ref class DefaultODataBatchHandler : ODataBatchHandler
type DefaultODataBatchHandler = 
    class
        inherit ODataBatchHandler
    end
Public Class DefaultODataBatchHandler
    Inherits ODataBatchHandler

Constructors

Name Description
System_CAPS_pubmethod DefaultODataBatchHandler(HttpServer)

Initializes a new instance of the DefaultODataBatchHandler class.

Properties

Name Description
System_CAPS_pubproperty Invoker

Gets the invoker to send the batch requests to the HttpServer.(Inherited from HttpBatchHandler.)

System_CAPS_pubproperty MessageQuotas

Gets the ODataMessageQuotas used for reading/writing the batch request/response. (Inherited from ODataBatchHandler.)

System_CAPS_pubproperty ODataRouteName

Gets or sets the name of the OData route associated with this batch handler. (Inherited from ODataBatchHandler.)

Methods

Name Description
System_CAPS_pubmethod CreateResponseMessageAsync(IEnumerable<ODataBatchResponseItem>, HttpRequestMessage, CancellationToken)

Creates the batch response message. (Inherited from ODataBatchHandler.)

System_CAPS_pubmethod Dispose()

(Inherited from HttpMessageHandler.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from HttpMessageHandler.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecuteRequestMessagesAsync(IEnumerable<ODataBatchRequestItem>, CancellationToken)

Executes the OData batch requests.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetBaseUri(HttpRequestMessage)

Gets the base URI for the batched requests. (Inherited from ODataBatchHandler.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ParseBatchRequestsAsync(HttpRequestMessage, CancellationToken)

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

System_CAPS_pubmethod ProcessBatchAsync(HttpRequestMessage, CancellationToken)

(Overrides HttpBatchHandler.ProcessBatchAsync(HttpRequestMessage, CancellationToken).)

System_CAPS_protmethod SendAsync(HttpRequestMessage, CancellationToken)

Sends the batch handler asynchronously.(Inherited from HttpBatchHandler.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod ValidateRequest(HttpRequestMessage)

Validates the incoming request that contains the batch request messages. (Inherited from ODataBatchHandler.)

Remarks

By default, it buffers the request content stream.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.OData.Batch Namespace

Return to top