Class AppConfigLoader
Loads configuration by reading the appsettings.json.
Inheritance
System.Object
AppConfigLoader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pagene.BlogSettings
Assembly: Pagene.BlogSettings.dll
Syntax
public static class AppConfigLoader
Methods
| Improve this Doc View SourceLoadConfig()
Loads configurations from appsettings.json.
Declaration
public static void LoadConfig()
Remarks
Please don't forget to use this before using the app, unless it will use default paths, which is may not intended.
LoadConfig(IConfigurationRoot)
Declaration
public static void LoadConfig(IConfigurationRoot config)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfigurationRoot | config |