Skip to content

ConfigurationBase1 Class` ​

Definition ​

Provides a strongly typed base class for configuration objects.

  • Namespace: JASE
  • Assembly: JASE.dll

Methods ​

NameDescription
SC FromJson(string json, EnvironmentMergeMode mode = null)Create an instance from a JSON string
SC FromJsonFile()Generate a configuration instance from the JSON file named by JsonFilenameAttribute.
SC FromJsonFile(string filename, EnvironmentMergeMode mode = null, bool performTransforms = null)Generate a Configuration class from a JSON file
string GetJsonFilename()Returns the resolved JSON configuration file path from JsonFilenameAttribute.
bool TryGetJsonFilename(out string filename)Attempts to resolve the JSON configuration file path from JsonFilenameAttribute.

Remarks ​

This generic form enables strongly typed factory, cloning, and deserialization patterns while still inheriting shared configuration behavior from ConfigurationBase. Derived classes should specify themselves as the generic type argument.