Dela via


PartnerExtensions.InvokeAsync Method

Definition

Overloads

InvokeAsync<TRequest,TResponse>(Link, IPartner, TRequest, JsonConverter)

Asynchronously invokes a link with a request body and returns the result.

InvokeAsync<TResponse>(Link, IPartner, JsonConverter)

Asynchronously invokes a link and returns the result.

Asynchronously invokes a link with a request body and returns the result.

public static System.Threading.Tasks.Task<TResponse> InvokeAsync<TRequest,TResponse> (this Microsoft.Store.PartnerCenter.Models.Link link, Microsoft.Store.PartnerCenter.IPartner partnerOperations, TRequest requestBody, Newtonsoft.Json.JsonConverter converter = default);
static member InvokeAsync : Microsoft.Store.PartnerCenter.Models.Link * Microsoft.Store.PartnerCenter.IPartner * 'Request * Newtonsoft.Json.JsonConverter -> System.Threading.Tasks.Task<'Response>
<Extension()>
Public Function InvokeAsync(Of TRequest, TResponse) (link As Link, partnerOperations As IPartner, requestBody As TRequest, Optional converter As JsonConverter = Nothing) As Task(Of TResponse)

Type Parameters

TRequest

The type of the request body.

TResponse

The return type of the invocation.

Parameters

link
Link

The link to invoke.

partnerOperations
IPartner

A partner operations object from which credentials and context are extracted.

requestBody
TRequest

The request body to send.

converter
JsonConverter

An optional JSON converter to be used in encoding and decoding requests and responses.

Returns

Task<TResponse>

The link invocation result.

Applies to

Asynchronously invokes a link and returns the result.

public static System.Threading.Tasks.Task<TResponse> InvokeAsync<TResponse> (this Microsoft.Store.PartnerCenter.Models.Link link, Microsoft.Store.PartnerCenter.IPartner partnerOperations, Newtonsoft.Json.JsonConverter converter = default);
static member InvokeAsync : Microsoft.Store.PartnerCenter.Models.Link * Microsoft.Store.PartnerCenter.IPartner * Newtonsoft.Json.JsonConverter -> System.Threading.Tasks.Task<'Response>
<Extension()>
Public Function InvokeAsync(Of TResponse) (link As Link, partnerOperations As IPartner, Optional converter As JsonConverter = Nothing) As Task(Of TResponse)

Type Parameters

TResponse

The return type of the invocation.

Parameters

link
Link

The link to invoke.

partnerOperations
IPartner

A partner operations object from which credentials and context are extracted.

converter
JsonConverter

An optional JSON converter to be used in encoding and decoding requests and responses.

Returns

Task<TResponse>

The link invocation result.

Applies to