data-api-builder
data-api-builder copied to clipboard
Refresh HotReload Design Doc
Objectives
- Elaborate on the assertion that
IOptionsMonitoris not feasible with examples and error messages
However, after some investigation it became apparent IOptionsMonitor would not be able to integrate easily into dab in such a way that it would automatically handle the hot-reload scenario. Because of the way we instantiate our object model of the configuration file, using IOptionsMonitor in such a way is not possible at this time.
- Which DAB services don't support this?
- Example attempt which demonstrates this doesn't work.
- Elaborate on why we can't use a custom configuration provider to utilize out of box file change monitoring which translates to raising events that would trigger runtimeconfigprovider to generate new runtime config object.
- https://learn.microsoft.com/en-us/dotnet/core/extensions/configuration-providers
- https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
- https://learn.microsoft.com/en-us/dotnet/core/extensions/custom-configuration-provider
@aaronburtle is "in progress" the latest status?