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
ChainedConfigurationSourceThe 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
stringThe 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
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
TryGet(string, out string)
Tries to get a configuration value for the specified key.
public bool TryGet(string key, out string value)