Table of Contents

Class ChainedConfigurationProvider

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

Chained implementation of IConfigurationProvider

public class ChainedConfigurationProvider : IConfigurationProvider
Inheritance
ChainedConfigurationProvider
Implements
Inherited Members

Constructors

ChainedConfigurationProvider(ChainedConfigurationSource)

Initialize a new instance from the source configuration.

public ChainedConfigurationProvider(ChainedConfigurationSource source)

Parameters

source ChainedConfigurationSource

The source configuration.

Methods

GetChildKeys(IEnumerable<string>, string)

Returns the immediate descendant configuration keys for a given parent path based on this IConfigurationProvider's data and the set of keys returned by all the preceding IConfigurationProviders.

public IEnumerable<string> GetChildKeys(IEnumerable<string> earlierKeys, string parentPath)

Parameters

earlierKeys IEnumerable<string>

The child keys returned by the preceding providers for the same parent path.

parentPath string

The parent path.

Returns

IEnumerable<string>

The child keys.

GetReloadToken()

Returns a change token if this provider supports change tracking, null otherwise.

public IChangeToken GetReloadToken()

Returns

IChangeToken

Load()

Loads configuration values from the source represented by this IConfigurationProvider.

public void Load()

Set(string, string)

Sets a configuration value for the specified key.

public void Set(string key, string value)

Parameters

key string

The key.

value string

The value.

TryGet(string, out string)

Tries to get a configuration value for the specified key.

public bool TryGet(string key, out string value)

Parameters

key string

The key.

value string

The value.

Returns

bool

true if a value for the specified key was found, otherwise false.