NamespaceSystemLibrary.Common.Framework
EnvironmentConfig with an option to pass your own Configuration class, along with an enum that defines all environment names.
EnvironmentConfig<T, TEnvironmentNameEnum>
public abstract class EnvironmentConfig<T, TEnvironmentNameEnum> : Config<T> where T : class where TEnvironmentNameEnum : struct, IComparable, IFormattable, IConvertible
Inherited Members
Type Parameters
Name | Description |
---|---|
T | |
TEnvironmentNameEnum |
Properties
Property Value
Type | Description |
---|---|
TEnvironmentNameEnum |
Remarks
Changing the environment name requires a shell restart (e.g., iisreset).
Transformation for the EnvironmentConfig class is run based on the ASPNETCORE_ENVIRONMENT passed. Additionally, a environmentConfig.someEnvName.json file may include a Name that differs from the environment name, in which case this Name in the transformed file will be returned instead.Property Value
Type | Description |
---|---|
string |
Extension Methods
}