Share via


PartnerExtensions.Invoke Method

Definition

Overloads

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

Invokes a link with a request body and returns the result.

Invoke<TResponse>(Link, IPartner, JsonConverter)

Invokes a link and returns the result.

Invokes a link with a request body and returns the result.

public static TResponse Invoke<TRequest,TResponse> (this Microsoft.Store.PartnerCenter.Models.Link link, Microsoft.Store.PartnerCenter.IPartner partnerOperations, TRequest requestBody, Newtonsoft.Json.JsonConverter converter = default);
static member Invoke : Microsoft.Store.PartnerCenter.Models.Link * Microsoft.Store.PartnerCenter.IPartner * 'Request * Newtonsoft.Json.JsonConverter -> 'Response
<Extension()>
Public Function Invoke(Of TRequest, TResponse) (link As Link, partnerOperations As IPartner, requestBody As TRequest, Optional converter As JsonConverter = Nothing) As 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

TResponse

The link invocation result.

Applies to

Invokes a link and returns the result.

public static TResponse Invoke<TResponse> (this Microsoft.Store.PartnerCenter.Models.Link link, Microsoft.Store.PartnerCenter.IPartner partnerOperations, Newtonsoft.Json.JsonConverter converter = default);
static member Invoke : Microsoft.Store.PartnerCenter.Models.Link * Microsoft.Store.PartnerCenter.IPartner * Newtonsoft.Json.JsonConverter -> 'Response
<Extension()>
Public Function Invoke(Of TResponse) (link As Link, partnerOperations As IPartner, Optional converter As JsonConverter = Nothing) As 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

TResponse

The link invocation result.

Applies to