Skip to content

Commit a30b3ff

Browse files
IEvangelistpull[bot]
authored andcommitted
Add more details about options monitoring support. Fixes #41071 (#42132)
1 parent 70eb12e commit a30b3ff

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/core/extensions/options.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Options pattern
33
author: IEvangelist
44
description: Learn the options pattern to represent groups of related settings in .NET apps. The options pattern uses classes to provide strongly-typed access to settings.
55
ms.author: dapine
6-
ms.date: 07/18/2024
6+
ms.date: 08/13/2024
77
---
88

99
# Options pattern in .NET
@@ -144,6 +144,14 @@ In the preceding code, the `Configure<TOptions>` method is used to register a co
144144

145145
## IOptionsMonitor
146146

147+
The `IOptionsMonitor` type supports change notifications and enables scenarios where your app may need to respond to configuration source changes dynamically. This is useful when you need to react to changes in configuration data after the app has started. Change notifications are only supported for file-system based configuration providers, such as the following:
148+
149+
- [Microsoft.Extensions.Configuration.Ini](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Ini)
150+
- [Microsoft.Extensions.Configuration.Json](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Json)
151+
- [Microsoft.Extensions.Configuration.KeyPerFile](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.KeyPerFile)
152+
- [Microsoft.Extensions.Configuration.UserSecrets](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.UserSecrets)
153+
- [Microsoft.Extensions.Configuration.Xml](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Xml)
154+
147155
To use the options monitor, options objects are configured in the same way from a configuration section.
148156

149157
```csharp

0 commit comments

Comments
 (0)