Jaa


EndorsementsRetriever(HttpClient) Constructor

Definition

Initializes a new instance of the EndorsementsRetriever class.

public EndorsementsRetriever (System.Net.Http.HttpClient httpClient);
new Microsoft.Bot.Connector.Authentication.EndorsementsRetriever : System.Net.Http.HttpClient -> Microsoft.Bot.Connector.Authentication.EndorsementsRetriever
Public Sub New (httpClient As HttpClient)

Parameters

httpClient
HttpClient

Allow the calling layer to manage the lifetime of the HttpClient, complete with timeouts, pooling, instancing and so on. This is to avoid having to Use/Dispose a new instance of the client on each call, which may be very expensive in terms of latency, TLS connections and related issues.

Applies to