ODataBatchRequestItem.SendRequestAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| SendRequestAsync(RequestDelegate) |
Routes the request. |
| SendRequestAsync(HttpMessageInvoker, CancellationToken) |
Sends the request. |
| SendRequestAsync(RequestDelegate, HttpContext, Dictionary<String,String>) |
Routes a single OData batch request. |
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
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
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.