Table of Contents

Interface IConfigurationProvider

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

Provides configuration key/values for an application.

public interface IConfigurationProvider

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.

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.

IChangeToken GetReloadToken()

Returns

IChangeToken

Load()

Loads configuration values from the source represented by this IConfigurationProvider.

void Load()

Set(string, string)

Sets a configuration value for the specified key.

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.

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.