语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

CodeTransparencyClientHostExtensions.AddKeyedCodeTransparencyClient Method

Definition

Overloads

AddKeyedCodeTransparencyClient(IHostApplicationBuilder, String, String)

Source:
CodeTransparencyClientHostExtensions.cs
Source:
CodeTransparencyClientHostExtensions.cs

Adds a keyed singleton CodeTransparencyClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddKeyedCodeTransparencyClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName);
static member AddKeyedCodeTransparencyClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedCodeTransparencyClient (host As IHostApplicationBuilder, key As String, sectionName As String) As IClientBuilder

Parameters

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

AddKeyedCodeTransparencyClient(IHostApplicationBuilder, String, String, Action<CodeTransparencyClientSettings>)

Source:
CodeTransparencyClientHostExtensions.cs
Source:
CodeTransparencyClientHostExtensions.cs

Adds a keyed singleton CodeTransparencyClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddKeyedCodeTransparencyClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName, Action<Azure.Security.CodeTransparency.CodeTransparencyClientSettings> configureSettings);
static member AddKeyedCodeTransparencyClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string * Action<Azure.Security.CodeTransparency.CodeTransparencyClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedCodeTransparencyClient (host As IHostApplicationBuilder, key As String, sectionName As String, configureSettings As Action(Of CodeTransparencyClientSettings)) As IClientBuilder

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<CodeTransparencyClientSettings>

Factory method to modify the CodeTransparencyClientSettings after they are created.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to