C# Option enables bind a section of application settings. This video takes look at it in depth. Scenarios like binding to array (IEnumerable), binding to dictionary (IDictionary) are covered, as well as validation scenarios.
All data annotation attributes: https://docs.microsoft.com/en-us/dotn...
Example code: https://github.com/xiaomi7732/CodeWit...
Options Pattern used in the JWT Authentication library: https://github.com/xiaomi7732/CodeWit...
Chapters
00:00 Intro
00:51 Bind configurations to IEnumerable
02:35 Bind configurations to IDictionary
03:51 Binding validations
06:19 Use Options Pattern in JWT Auth Library