Simplifying dependency injection for IConfigureOptions with the ConfigureOptions() helper

added by DotNetKicks
11/13/2018 10:29:22 AM

2 Kicks, 725 Views

In recent posts I've been discussing the Options pattern for strongly-typed settings configuration in some depth. One of the patterns that has come up several times is using IConfigureOptions or IConfigureNamedOptions when you need to use a service from DI to configure your Options.