Skip to main content

Definition

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

Syntax

Microsoft.Restier.AspNet.Batch.RestierBatchChangeSetRequestItem

Summary

Represents an API ChangeSet request.

Constructors

.ctor

Initializes a new instance of the RestierBatchChangeSetRequestItem class.

Syntax

public RestierBatchChangeSetRequestItem(Microsoft.Restier.Core.ApiBase api, System.Collections.Generic.IEnumerable<System.Net.Http.HttpRequestMessage> requests)

Parameters

NameTypeDescription
apiMicrosoft.Restier.Core.ApiBaseAn Api.
requestsSystem.Collections.Generic.IEnumerable<System.Net.Http.HttpRequestMessage>The request messages.

Methods

SendRequestAsync Override

Asynchronously sends the request.

Syntax

public override System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem> SendRequestAsync(System.Net.Http.HttpMessageInvoker invoker, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
invokerSystem.Net.Http.HttpMessageInvokerThe invoker.
cancellationTokenSystem.Threading.CancellationTokenThe cancellation token.

Returns

Type: System.Threading.Tasks.Task<Microsoft.AspNet.OData.Batch.ODataBatchResponseItem> The task object that contains the batch response.