Рет қаралды 18,900
When building applications, it often needs access to different configurations - be it a connection string to a database, ClientId, Secret, external API URLs, tokens, etc. By keeping these values in the application's configuration, we can use different values for different environments. ASP NET Core provides rich support for adding various configuration sources including appsettings.json, environment variables, key vault, and many more.
In this video, let's learn how to consume these configuration values from the application code you write, using the Options pattern in ASP NET Core. We will see the different interfaces supported by the pattern IOptions, IOptionsSnapshot, and see the differences between them. We can also add validations to ensure configuration values exist and enforce constraints on the values configured.
🔗Source Code - rahulpnath.visualstudio.com/D...
🔗 Options Pattern - docs.microsoft.com/en-us/aspn...
Additional Watching
📹How To Use HTTP CLIENT IN ASP NET CORE - • How To Use HTTP CLIENT...
📹DEPENDENCY INJECTION in ASP.NET Core - • DEPENDENCY INJECTION i...
📹CONFIGURATION in ASP.NET Core - • CONFIGURATION in ASP.N...
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
Video Edited by my wife, Parvathy 😍
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!