Table of Contents

Class ConfigurationObjectLoaderExt

Namespace
Tlabs.Config
Assembly
Tlabs.Core.dll

Extension class for loading IConfigurator<T>(s) from a IConfigurationSection.

public static class ConfigurationObjectLoaderExt
Inheritance
ConfigurationObjectLoaderExt
Inherited Members

Methods

LoadConfigurationObjects<T>(IConfiguration, bool)

Returns an enumeration of ConfigurationObjectLoaderExt.CfgObject<T>(s) with Object instances loaded from a IConfiguration.

public static IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>> LoadConfigurationObjects<T>(this IConfiguration cfg, bool excludeObjDesc = false) where T : class

Parameters

cfg IConfiguration
excludeObjDesc bool

Returns

IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>>

Type Parameters

T

LoadObject<T>(IConfiguration)

Returns an enumeration of ConfigurationObjectLoaderExt.CfgObject<T>(s) with Object instances loaded from a IConfiguration.

[Obsolete("Use LoadConfigurationObjects<T>()", false)]
public static IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>> LoadObject<T>(this IConfiguration cfg) where T : class

Parameters

cfg IConfiguration

Returns

IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>>

Type Parameters

T