NamespaceSystemLibrary.Common.Net.Configurations
EnvironmentConfig with option to bass a Configuration class on your own and a 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 environment name requires shell restart (iisreset for instance)
Transformation for this class, EnvironmentConfig, is ran then based on ASPNETCORE_ENVIRONMENT passed. And a 'environmentConfig.someEnvName.json' file can also include a Name, which differs, which mean this Name in the transformed file is whats being returnedProperty Value
Type | Description |
---|---|
System.String |
Extension Methods
}