Managing .NET App Configuration With The Options Pattern In ASP.NET Core
Support me on Patreon to access the source code:
https://www.patreon.com/milanjovanovic
In this video, we will explore the Options pattern in ASP.NET Core and how we can use it to manage our application configuration. The options pattern is very straightforward to use, and we have one of three interfaces to choose from:
– IOptions
– IOptionsSnapshot
– IOptionsMonitor
All of them are slightly different, and I will try to highlight the most important aspects of each.
How To Use The Options Pattern In ASP.NET Core 7:
https://www.milanjovanovic.tech/blog/how-to-use-the-options-pattern-in-asp-net-core-7
Adding Validation To The Options Pattern In ASP.NET Core
https://www.milanjovanovic.tech/blog/adding-validation-to-the-options-pattern-in-asp-net-core
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech?sub_confirmation=1
Chapters
0:00 How to use IOptions
3:45 How to use IOptionsSnapshot and IOptionsMonitor
6:43 Configuring options pattern with IConfigureOptions
Comments are closed.