KeyVaultEkmClientHostExtensions.AddKeyedKeyVaultEkmClient Method
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
| Name | Description |
|---|---|
| AddKeyedKeyVaultEkmClient(IHostApplicationBuilder, String, String) |
Adds a keyed singleton KeyVaultEkmClient to the IHostApplicationBuilder's service collection. |
| AddKeyedKeyVaultEkmClient(IHostApplicationBuilder, String, String, Action<KeyVaultEkmClientSettings>) |
Adds a keyed singleton KeyVaultEkmClient to the IHostApplicationBuilder's service collection. |
AddKeyedKeyVaultEkmClient(IHostApplicationBuilder, String, String)
Adds a keyed singleton KeyVaultEkmClient to the IHostApplicationBuilder's service collection.
public static System.ClientModel.Primitives.IClientBuilder AddKeyedKeyVaultEkmClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName);
static member AddKeyedKeyVaultEkmClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedKeyVaultEkmClient (host As IHostApplicationBuilder, key As String, sectionName As String) As IClientBuilder
Parameters
The IHostApplicationBuilder to add to.
- key
- String
The unique key to register as.
- sectionName
- String
The section of IConfiguration to use.
Returns
An IClientBuilder that can be used to further configure the client.
Applies to
AddKeyedKeyVaultEkmClient(IHostApplicationBuilder, String, String, Action<KeyVaultEkmClientSettings>)
Adds a keyed singleton KeyVaultEkmClient to the IHostApplicationBuilder's service collection.
public static System.ClientModel.Primitives.IClientBuilder AddKeyedKeyVaultEkmClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName, Action<Azure.Security.KeyVault.Administration.KeyVaultEkmClientSettings> configureSettings);
static member AddKeyedKeyVaultEkmClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string * Action<Azure.Security.KeyVault.Administration.KeyVaultEkmClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedKeyVaultEkmClient (host As IHostApplicationBuilder, key As String, sectionName As String, configureSettings As Action(Of KeyVaultEkmClientSettings)) As IClientBuilder
Parameters
The IHostApplicationBuilder to add to.
- key
- String
The unique key to register as.
- sectionName
- String
The section of IConfiguration to use.
- configureSettings
- Action<KeyVaultEkmClientSettings>
Factory method to modify the KeyVaultEkmClientSettings after they are created.
Returns
An IClientBuilder that can be used to further configure the client.