Month: April 2024

Workaround – Injecting options directly – Options, Settings, and Configuration

The only negative point about the .NET Options pattern is that we must tie our code to the framework’s interfaces. We must inject an interface like IOptionsMonitor<Options> instead of the Options class itself. By letting the consumers choose the interface, we let them control the lifetime of the options, which breaks the inversion of control, […]



         


          Terms of Use | Accessibility Privacy