ConsulRegistry Class

Summary

This manages the configuration keys you load as well as watching live keys and allowing you to add or update keys.
Namespace
CondenserDotNet.Configuration.Consul
Interfaces
Base Types
  • object
graph TD Base0["object"]-->Type Interface0["IConfigurationRegistry"]-.->Type click Interface0 "/CondenserDocs/api/CondenserDotNet.Configuration/IConfigurationRegistry" Interface1["IDisposable"]-.->Type Type["ConsulRegistry"] class Type type-node

Syntax

public class ConsulRegistry : IConfigurationRegistry, IDisposable

Constructors

Properties

Name Value Summary
AllKeys IEnumerable<string>
This returns a flattened list of all the loaded keys
Builder ConfigurationBuilder
Root IConfigurationRoot
this[string] string

Methods

Name Value Summary
AddStaticKeyPathAsync(string) Task<bool>
This loads the keys from a path. They are not updated.
AddUpdatingPathAsync(string) Task
This loads the keys from a path. The path is then watched and updates are added into the configuration set
AddWatchOnEntireConfig(Action) void
AddWatchOnSingleKey(string, Action<string>) void
Dispose() void
SetKeyAsync(string, string) Task<bool>
This allows you to set a configuration key
StripFrontAndBackSlashes(string) string
static
TryGetValue(string, string) bool

Extension Methods