Class ResourcesSettingsLoader
Reads resources.json; a missing file means resources are not configured.
public static class ResourcesSettingsLoader
- Inheritance
-
ResourcesSettingsLoader
- Inherited Members
Fields
ConfigPathKey
The setting naming the resources.json path.
public const string ConfigPathKey = "ResourcesConfigPath"
Field Value
DefaultConfigPath
The resources.json path when ConfigPathKey is unset.
public const string DefaultConfigPath = "config/resources.json"
Field Value
Methods
Load(IConfiguration)
The settings, or null without a file. Throws on a file that is there but unusable.
public static ResourcesSettings? Load(IConfiguration configuration)
Parameters
configurationIConfiguration