Examples
Runnable example projects demonstrating individual features. Each is a standalone .NET project in src/Examples/.
Configuration
| Example | What It Shows |
|---|---|
| BasicUsage | ASP.NET Core with file + environment layering |
| FileLayering | Multi-file layering (base / environment / local) |
| ConditionalRulesExample | Config-aware conditional rules with .When() |
| DynamicDependencies | Rules derived from earlier config |
| ExposeExample | Interface exposure with .ExposeAs<T>() |
| SimplifiedCoreExample | Console app without DI using ConfigManager.Create() |
Providers
| Example | What It Shows |
|---|---|
| CommandLineExample | Command-line argument parsing with prefix filtering |
| StaticProviderExample | Static and observable providers |
| HttpPollingExample | Remote HTTP config (polling, SSE, one-time fetch) |
| MicrosoftAdapterExample | Bridge existing IConfiguration sources |
| GenericProviderAPI | Building a custom provider |
Reactive & ASP.NET Core
| Example | What It Shows |
|---|---|
| TupleReactiveExample | Atomic multi-config snapshots with IReactiveConfig<(T1, T2)> |
| AspNetCoreExample | Full ASP.NET Core integration with health checks |
Secrets
| Example | What It Shows |
|---|---|
| SecretsBasicExample | Secret<T> with plaintext and lease pattern |
| SecretsCertificateExample | Pre-encrypted secrets with X.509 certificates |
Testing
| Example | What It Shows |
|---|---|
| TestingOverridesExample | CocoarTestConfiguration with Replace/Append modes |