Share via


AutoClientAttribute Constructors

Definition

Overloads

AutoClientAttribute(String)

Initializes a new instance of the AutoClientAttribute class.

AutoClientAttribute(String, String)

Initializes a new instance of the AutoClientAttribute class.

AutoClientAttribute(String)

Source:
AutoClientAttribute.cs

Initializes a new instance of the AutoClientAttribute class.

public:
 AutoClientAttribute(System::String ^ httpClientName);
public AutoClientAttribute(string httpClientName);
new Microsoft.Extensions.Http.AutoClient.AutoClientAttribute : string -> Microsoft.Extensions.Http.AutoClient.AutoClientAttribute
Public Sub New (httpClientName As String)

Parameters

httpClientName
String

The name of the HTTP client to be retrieved from IHttpClientFactory.

Applies to

AutoClientAttribute(String, String)

Source:
AutoClientAttribute.cs

Initializes a new instance of the AutoClientAttribute class.

public:
 AutoClientAttribute(System::String ^ httpClientName, System::String ^ customDependencyName);
public AutoClientAttribute(string httpClientName, string customDependencyName);
new Microsoft.Extensions.Http.AutoClient.AutoClientAttribute : string * string -> Microsoft.Extensions.Http.AutoClient.AutoClientAttribute
Public Sub New (httpClientName As String, customDependencyName As String)

Parameters

httpClientName
String

The name of the HTTP client to be retrieved from IHttpClientFactory.

customDependencyName
String

The dependency name override to use.

Applies to