ConfigurationManagerExtensions Class
Extensions of Microsoft.Extensions.Configuration.ConfigurationManager
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["ConfigurationManagerExtensions"] class Type type-node

Syntax

public static class ConfigurationManagerExtensions

Remarks

Several members in this class depend on DeploymentEnvironment constants.

Methods

Name Return Value Summary
GetConnectionNameFromEnvironment(ConnectionStringSettingsCollection?, string, string, bool) string
Gets the connection name from environment.
static
GetConnectionNameFromEnvironment(ConnectionStringSettingsCollection?, string, string, string, bool) string
Gets the connection name from environment.
static
GetConnectionNameFromEnvironment(ConnectionStringSettingsCollection?, string, string, string) string
Gets the connection name from environment.
static
GetConnectionNameFromEnvironment(ConnectionStringSettingsCollection?, string, string) string
Gets the connection name from environment.
static
GetConnectionStringSettings(ConnectionStringSettingsCollection?, string, bool) ConnectionStringSettings?
Gets the connection string settings.
static
GetConnectionStringSettings(ConnectionStringSettingsCollection?, string) ConnectionStringSettings?
Gets the connection string settings.
static
GetEnvironmentName(KeyValueConfigurationCollection?, string, string, bool) string
Gets the name of the conventional deployment environment.
static
GetEnvironmentName(KeyValueConfigurationCollection?, string, string) string
Gets the name of the conventional deployment environment.
static
GetEnvironmentName(KeyValueConfigurationCollection?, string) string
Gets the name of the conventional deployment environment.
static
GetEnvironmentName(KeyValueConfigurationCollection?) string
Gets the name of the conventional deployment environment.
static
GetKeyWithEnvironmentName(KeyValueConfigurationCollection?, string, string, bool) string
Gets the name of the key with environment.
static
GetKeyWithEnvironmentName(KeyValueConfigurationCollection?, string, string, string, bool) string
Gets the key with environment name.
static
GetKeyWithEnvironmentName(KeyValueConfigurationCollection?, string, string, string) string
Gets the key with environment name.
static
GetKeyWithEnvironmentName(KeyValueConfigurationCollection?, string, string) string
Gets the name of the key with environment.
static
GetSetting(KeyValueConfigurationCollection?, string, bool, Func<string, string>?) string
Gets the setting from the current KeyValueConfigurationCollection.
static
GetSetting(KeyValueConfigurationCollection?, string, bool) string
Gets the setting from the current KeyValueConfigurationCollection.
static
GetSetting(KeyValueConfigurationCollection?, string) string
Gets the setting from the current KeyValueConfigurationCollection.
static
ToAppSettings(XDocument?) KeyValueConfigurationCollection?
Converts the external configuration file to the application settings KeyValueConfigurationCollection.
static
ToConnectionStringSettingsCollection(XDocument?) ConnectionStringSettingsCollection?
Converts the external configuration file to the application settings ConnectionStringSettingsCollection.
static
WithAppSettings(KeyValueConfigurationCollection?, XDocument?) KeyValueConfigurationCollection?
Returns KeyValueConfigurationCollection with the application settings of the specified external configuration XDocument.
static
WithConnectionStringSettingsCollection(ConnectionStringSettingsCollection?, XDocument?) ConnectionStringSettingsCollection?
Returns ConnectionStringSettingsCollection with the application settings of the specified external configuration XDocument.
static