Table of Contents

Class ConfigurationRoot

Namespace
Acuit.Pinpoint.Configuration
Assembly
Acuit.Pinpoint.Configuration.dll

The root node for a configuration.

public class ConfigurationRoot : IConfigurationRoot, IConfiguration
Inheritance
ConfigurationRoot
Implements
Inherited Members
Extension Methods

Constructors

ConfigurationRoot(IList<IConfigurationProvider>)

Initializes a Configuration root with a list of providers.

public ConfigurationRoot(IList<IConfigurationProvider> providers)

Parameters

providers IList<IConfigurationProvider>

The IConfigurationProviders for this configuration.

Properties

this[string]

Gets or sets the value corresponding to a configuration key.

public string this[string key] { get; set; }

Parameters

key string

The configuration key.

Property Value

string

The configuration value.

Providers

The IConfigurationProviders for this configuration.

public IEnumerable<IConfigurationProvider> Providers { get; }

Property Value

IEnumerable<IConfigurationProvider>

Methods

GetChildren()

Gets the immediate children sub-sections.

public IEnumerable<IConfigurationSection> GetChildren()

Returns

IEnumerable<IConfigurationSection>

GetReloadToken()

Returns a IChangeToken that can be used to observe when this configuration is reloaded.

public IChangeToken GetReloadToken()

Returns

IChangeToken

GetSection(string)

Gets a configuration sub-section with the specified key.

public IConfigurationSection GetSection(string key)

Parameters

key string

The key of the configuration section.

Returns

IConfigurationSection

The IConfigurationSection.

Remarks

This method will never return null. If no matching sub-section is found with the specified key, an empty IConfigurationSection will be returned.

Reload()

Force the configuration values to be reloaded from the underlying sources.

public void Reload()