C# Class Config.Net.ConfigurationExtensions

Configuration extensions
Mostrar archivo Open project: aloneguid/config

Public Methods

Method Description
UseAppConfig ( this configuration ) : IConfigConfiguration

Standard app.config (web.config) configuration store. Read-only.

UseAssemblyConfig ( this configuration, Assembly assembly ) : IConfigConfiguration

Reads configuration from the .dll.config or .exe.config file.

UseAzureConfigStore ( this configuration ) : IConfigConfiguration

Use azure configuration manager

UseAzureKeyVault ( this configuration, Uri vaultUri, string azureAadClientId, string azureAadClientSecret ) : IConfigConfiguration

Use Azure Key Vault

UseAzureTable ( this configuration, string accountName, string storageKey, string tableName, string appName ) : IConfigConfiguration

Use azure tables

UseEnvironmentVariables ( this configuration ) : IConfigConfiguration

Uses system environment variables

UseInMemoryConfig ( this configuration ) : IConfigConfiguration

Use in-memory configuration

UseIniFile ( this configuration, string iniFilePath ) : IConfigConfiguration

Simple INI storage.

Method Details

UseAppConfig() public static method

Standard app.config (web.config) configuration store. Read-only.
public static UseAppConfig ( this configuration ) : IConfigConfiguration
configuration this
return IConfigConfiguration

UseAssemblyConfig() public static method

Reads configuration from the .dll.config or .exe.config file.
public static UseAssemblyConfig ( this configuration, Assembly assembly ) : IConfigConfiguration
configuration this
assembly System.Reflection.Assembly Reference to the assembly to look for
return IConfigConfiguration

UseAzureConfigStore() public static method

Use azure configuration manager
public static UseAzureConfigStore ( this configuration ) : IConfigConfiguration
configuration this
return IConfigConfiguration

UseAzureKeyVault() public static method

Use Azure Key Vault
public static UseAzureKeyVault ( this configuration, Uri vaultUri, string azureAadClientId, string azureAadClientSecret ) : IConfigConfiguration
configuration this
vaultUri Uri
azureAadClientId string
azureAadClientSecret string
return IConfigConfiguration

UseAzureTable() public static method

Use azure tables
public static UseAzureTable ( this configuration, string accountName, string storageKey, string tableName, string appName ) : IConfigConfiguration
configuration this
accountName string
storageKey string
tableName string
appName string
return IConfigConfiguration

UseEnvironmentVariables() public static method

Uses system environment variables
public static UseEnvironmentVariables ( this configuration ) : IConfigConfiguration
configuration this
return IConfigConfiguration

UseInMemoryConfig() public static method

Use in-memory configuration
public static UseInMemoryConfig ( this configuration ) : IConfigConfiguration
configuration this
return IConfigConfiguration

UseIniFile() public static method

Simple INI storage.
public static UseIniFile ( this configuration, string iniFilePath ) : IConfigConfiguration
configuration this
iniFilePath string File does not have to exist, however it will be created as soon as you try to write to it.
return IConfigConfiguration