次の方法で共有


ConfigurationExtensions Class

Definition

Static class containing extension methods for IConfiguration to get ClientSettings.

public static class ConfigurationExtensions
type ConfigurationExtensions = class
Public Module ConfigurationExtensions
Inheritance
ConfigurationExtensions

Methods

Name Description
AddClient<TClient,TSettings>(IHostApplicationBuilder, String, Action<TSettings>)

Adds a singleton client of the specified type to the IHostApplicationBuilder's service collection.

AddClient<TClient,TSettings>(IHostApplicationBuilder, String)

Adds a singleton client of the specified type to the IHostApplicationBuilder's service collection.

AddKeyedClient<TClient,TSettings>(IHostApplicationBuilder, String, String, Action<TSettings>)

Adds a keyed singleton client of the specified type to the IHostApplicationBuilder's service collection.

AddKeyedClient<TClient,TSettings>(IHostApplicationBuilder, String, String)

Adds a keyed singleton client of the specified type to the IHostApplicationBuilder's service collection.

GetClientSettings<T>(IConfiguration, String)

Creates an instance of T and sets its properties from the specified IConfiguration.

Applies to