Table of Contents

IConfigurationRoot Interface

The whole configuration, to which sources are added.

Remarks

Create one with TConfiguration. Add every source before handing the configuration to the code that reads it: adding sources is not thread safe. A source that fails to load leaves the configuration as it was.

Syntax

Unit: Bcl.Configuration

IConfigurationRoot = interface(IConfiguration);

Methods

Name Description
AddDefaults Adds the conventional sources of an application: its JSON file, then its environment variables.
AddEnvironment​Variables Adds the environment variables whose name starts with APrefix.
AddJson Adds JSON text held in memory.
AddJsonFile Adds the content of a JSON file.
SetValue Sets one value, replacing whatever is at APath.