Share via


ClientFactory.CreateHttpClient Method

Definition

Overloads

CreateHttpClient(String, HttpMessageHandler)
CreateHttpClient(String, ICredentials)

CreateHttpClient(String, HttpMessageHandler)

public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.Http.HttpMessageHandler effectiveHandler);
abstract member CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, effectiveHandler As HttpMessageHandler) As HttpClient

Parameters

endpoint
String
effectiveHandler
HttpMessageHandler

Returns

Implements

Applies to

CreateHttpClient(String, ICredentials)

public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.ICredentials credentials);
abstract member CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, credentials As ICredentials) As HttpClient

Parameters

endpoint
String
credentials
ICredentials

Returns

Implements

Applies to