语言

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

CodeTransparencyClientHostExtensions.AddCodeTransparencyClient Method

Definition

Overloads

AddCodeTransparencyClient(IHostApplicationBuilder, String)

Source:
CodeTransparencyClientHostExtensions.cs
Source:
CodeTransparencyClientHostExtensions.cs

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

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

Parameters

sectionName
String

The section of IConfiguration to use.

Returns

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

Applies to

AddCodeTransparencyClient(IHostApplicationBuilder, String, Action<CodeTransparencyClientSettings>)

Source:
CodeTransparencyClientHostExtensions.cs
Source:
CodeTransparencyClientHostExtensions.cs

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

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

Parameters

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