EndorsementsRetriever(HttpClient) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.