Skip to content

Examples

Runnable example projects demonstrating individual features. Each is a standalone .NET project in src/Examples/.

Configuration

ExampleWhat It Shows
BasicUsageASP.NET Core with file + environment layering
FileLayeringMulti-file layering (base / environment / local)
ConditionalRulesExampleConfig-aware conditional rules with .When()
DynamicDependenciesRules derived from earlier config
ExposeExampleInterface exposure with .ExposeAs<T>()
SimplifiedCoreExampleConsole app without DI using ConfigManager.Create()

Providers

ExampleWhat It Shows
CommandLineExampleCommand-line argument parsing with prefix filtering
StaticProviderExampleStatic and observable providers
HttpPollingExampleRemote HTTP config (polling, SSE, one-time fetch)
MicrosoftAdapterExampleBridge existing IConfiguration sources
GenericProviderAPIBuilding a custom provider

Reactive & ASP.NET Core

ExampleWhat It Shows
TupleReactiveExampleAtomic multi-config snapshots with IReactiveConfig<(T1, T2)>
AspNetCoreExampleFull ASP.NET Core integration with health checks

Secrets

ExampleWhat It Shows
SecretsBasicExampleSecret<T> with plaintext and lease pattern
SecretsCertificateExamplePre-encrypted secrets with X.509 certificates

Testing

ExampleWhat It Shows
TestingOverridesExampleCocoarTestConfiguration with Replace/Append modes

Released under the Apache-2.0 License.