语言

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

PlanetaryComputerProClientHostExtensions.AddKeyedPlanetaryComputerProClient Method

Definition

Overloads

AddKeyedPlanetaryComputerProClient(IHostApplicationBuilder, String, String)

Source:
PlanetaryComputerProClientHostExtensions.cs

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

public static System.ClientModel.Primitives.IClientBuilder AddKeyedPlanetaryComputerProClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName);
static member AddKeyedPlanetaryComputerProClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedPlanetaryComputerProClient (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

AddKeyedPlanetaryComputerProClient(IHostApplicationBuilder, String, String, Action<PlanetaryComputerProClientSettings>)

Source:
PlanetaryComputerProClientHostExtensions.cs

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

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

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<PlanetaryComputerProClientSettings>

Factory method to modify the PlanetaryComputerProClientSettings after they are created.

Returns

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

Applies to