Microsoft.Extensions.Configuration.ConfigurationBinder
Static helper class that allows binding strongly typed objects to configuration values.
namespace Microsoft.Extensions.Configuration
{
public static class ConfigurationBinder
{
public static T Get<T>(this IConfiguration configuration);
public static T Get<T>(this IConfiguration configuration, Action<BinderOptions> configureOptions);
public static object Get(this IConfiguration configuration, Type type);
public static object Get(this IConfiguration configuration, Type type, Action<BinderOptions> configureOptions);
public static void Bind(this IConfiguration configuration, string key, object instance);
public static void Bind(this IConfiguration configuration, object instance);
public static void Bind(this IConfiguration configuration, object instance, Action<BinderOptions> configureOptions);
public static T GetValue<[System.Runtime.CompilerServices.Nullable(2)] T>(this IConfiguration configuration, string key);
public static T GetValue<[System.Runtime.CompilerServices.Nullable(2)] T>(this IConfiguration configuration, string key, T defaultValue);
public static object GetValue(this IConfiguration configuration, Type type, string key);
public static object GetValue(this IConfiguration configuration, Type type, string key, object defaultValue);
}
}