Dynamic Behavior of the Options Pattern
summary
Demonstrates making .NET Core Options dynamic at runtime by using IOptionsMonitor and the post-configure pipeline to change settings without modifying library code. Shows a Consul-backed ConfigurationProvider that pushes updates, and concrete code examples including live log-level switching, integration with HttpClientFactory and hosted background services, and a migration pattern using a configurable connection string.
AI-written summary · about
chapters (11)
- 0:00DotNet Fest welcome
- 2:04Classic .NET config problems
- 5:00.NET Core config intro
- 7:53Options and config providers
- 10:47Dynamic config with Options Monitor
- 19:24Config providers and dynamics
- 30:47Options Monitor vs Snapshot
- 35:42Dynamic HttpClientFactory config
- 41:27Dynamic microservice config
- 48:45Summary
- 49:52Q&A
related talks
01h 01mModern .NET Configuration Practices
44mModern NET Configuration Practices
01h 02mModern .NET Configuration Practices
01h 02mBuilding cloud-ready applications in .NET
41mASP.NET Core in Production: Lessons Learned
50mA Deep Dive on Running Background Tasks in .NET Core
01h 00mBackground Services in ASP.NET Core and .NET
40mGood for Karma: Configuration at Runtime
