DefaultHttpBatchHandler.ParseBatchRequestsAsync Method (HttpRequestMessage, CancellationToken)
Converts the incoming batch request into a collection of request messages.
Namespace: System.Web.Http.Batch
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
[DebuggerStepThroughAttribute]
public virtual Task<IList<HttpRequestMessage>> ParseBatchRequestsAsync(
HttpRequestMessage request,
CancellationToken cancellationToken
)
public:
[DebuggerStepThroughAttribute]
virtual Task<IList<HttpRequestMessage^>^>^ ParseBatchRequestsAsync(
HttpRequestMessage^ request,
CancellationToken cancellationToken
)
[<DebuggerStepThroughAttribute>]
abstract ParseBatchRequestsAsync :
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<IList<HttpRequestMessage>>
[<DebuggerStepThroughAttribute>]
override ParseBatchRequestsAsync :
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<IList<HttpRequestMessage>>
<DebuggerStepThroughAttribute>
Public Overridable Function ParseBatchRequestsAsync (
request As HttpRequestMessage,
cancellationToken As CancellationToken
) As Task(Of IList(Of HttpRequestMessage))
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request containing the batch request messages.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<IList<HttpRequestMessage>>
A collection of HttpRequestMessage.
See Also
DefaultHttpBatchHandler Class
System.Web.Http.Batch Namespace
Return to top