Fix PostConfigureAll example (#7953)
parent
a68ab70390
commit
84515b39d9
|
@ -266,7 +266,7 @@ services.PostConfigure<MyOptions>("named_options_1", myOptions =>
|
||||||
Use [PostConfigureAll<TOptions>](/dotnet/api/microsoft.extensions.dependencyinjection.optionsservicecollectionextensions.postconfigureall) to post-configure all named configuration instances:
|
Use [PostConfigureAll<TOptions>](/dotnet/api/microsoft.extensions.dependencyinjection.optionsservicecollectionextensions.postconfigureall) to post-configure all named configuration instances:
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
services.PostConfigureAll<MyOptions>("named_options_1", myOptions =>
|
services.PostConfigureAll<MyOptions>(myOptions =>
|
||||||
{
|
{
|
||||||
myOptions.Option1 = "post_configured_option1_value";
|
myOptions.Option1 = "post_configured_option1_value";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue