ConfigurationSource interface

Supplies canonical or hierarchical configuration values.

Remarks

Sources are loaded asynchronously by createConfigurationContext or preloadConfigurationSources. Values are cached in an immutable host-scoped or process-level snapshot so existing synchronous hosting APIs can consume them during startup.

Properties

name

A unique name used to identify the source in diagnostics.

Methods

load()

Loads configuration data. A bare canonical record remains supported for compatibility; new sources should identify their representation explicitly.

Property Details

name

A unique name used to identify the source in diagnostics.

name: string

Property Value

string

Method Details

load()

Loads configuration data. A bare canonical record remains supported for compatibility; new sources should identify their representation explicitly.

function load(): Promise<ConfigurationSourceResult>

Returns