Share via


ODataBatchRequestItem.SendRequestAsync Method

Definition

Overloads

SendRequestAsync(RequestDelegate)

Routes the request.

public abstract System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem> SendRequestAsync(Microsoft.AspNetCore.Http.RequestDelegate handler);
abstract member SendRequestAsync : Microsoft.AspNetCore.Http.RequestDelegate -> System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>
Public MustOverride Function SendRequestAsync (handler As RequestDelegate) As Task(Of ODataBatchResponseItem)

Parameters

handler
RequestDelegate

The handler for processing a message.

Returns

A ODataBatchResponseItem.

Applies to

SendRequestAsync(HttpMessageInvoker, CancellationToken)

Sends the request.

public abstract System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem> SendRequestAsync(System.Net.Http.HttpMessageInvoker invoker, System.Threading.CancellationToken cancellationToken);
abstract member SendRequestAsync : System.Net.Http.HttpMessageInvoker * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem>
Public MustOverride Function SendRequestAsync (invoker As HttpMessageInvoker, cancellationToken As CancellationToken) As Task(Of ODataBatchResponseItem)

Parameters

invoker
HttpMessageInvoker

The invoker.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A ODataBatchResponseItem.

Applies to

SendRequestAsync(RequestDelegate, HttpContext, Dictionary<String,String>)

Routes a single OData batch request.

public static System.Threading.Tasks.Task SendRequestAsync(Microsoft.AspNetCore.Http.RequestDelegate handler, Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.Dictionary<string,string> contentIdToLocationMapping);
static member SendRequestAsync : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Http.HttpContext * System.Collections.Generic.Dictionary<string, string> -> System.Threading.Tasks.Task
Public Shared Function SendRequestAsync (handler As RequestDelegate, context As HttpContext, contentIdToLocationMapping As Dictionary(Of String, String)) As Task

Parameters

handler
RequestDelegate

The handler for processing a message.

context
HttpContext

The context.

contentIdToLocationMapping
Dictionary<String,String>

The Content-ID to Location mapping.

Returns

Applies to