IConfigurationRoot.AddDefaults Method
Adds the conventional sources of an application: its JSON file, then its environment variables.
Remarks
The file is the one named by the environment variable <APP>_CONFIG, which must exist; when that variable is not set, <app>.json beside the executable, which may be absent. The environment variables are those prefixed with <APP>_. See TConfiguration.DefaultFileName.
Syntax
Unit: Bcl.Configuration
function IConfigurationRoot.AddDefaults(const AAppName: string): IConfigurationRoot; virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AAppName | string | The application name. When empty, the name of the executable without its extension. |