AutoClientAttribute Constructors
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.
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.