Тёмный
No video :(

CONFIGURATION in ASP.NET Core | Getting Started With ASP.NET Core Series 

Rahul Nath
Подписаться 32 тыс.
Просмотров 31 тыс.
50% 1

Hey Friends, The .NET Framework, through configuration files, gives developers and administrators control and flexibility over the way applications run. Developers can put settings in configuration files, eliminating the need to recompile an application every time a setting changes. Configuration in ASP NET is performed using one or more configuration providers. Configuration providers read configuration data from key-values using a variety of config sources.
In this video, let's take a deep dive into how to configure values in ASP NET Core, read it in your application, how the default configuration providers are set up and how to write customer configuration providers.
🔗Configuration in ASP NET Core - docs.microsoft...
Additional Watching
📹Dependency Injection in ASP NET Core - • DEPENDENCY INJECTION i...
📹Middleware in ASP NET Core - • MIDDLEWARE in ASP.NET ...
📹Key Vault as Configuration Source - • Connect .Net Core to A...
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath...
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 118   
@RahulNath
@RahulNath 4 года назад
Source Code - rahulpnath.visualstudio.com/DefaultCollection/RU-vid%20Samples/_git/configuration
@starman9000
@starman9000 4 года назад
No one covered Configuration is such a detail with example in you tube! your videos will be my first reference point when it comes to these topics before Microsoft releases new version! i can't stop appreciate your content and your method of teaching! Salute!👏👏👏
@RahulNath
@RahulNath 4 года назад
Thanks again . I am extremely happy that you are finding these content useful 😀
@williy_cole
@williy_cole 2 года назад
Your approach in these videos is probably the most straight forward/to the point explanations I have yet to see. Definitely getting a sub, extremely good content. Helped me get up to speed on a few things new to me at a new job. I would love to see you build a simple Crud Api, tie it into a db maybe Mongo, then build a Spa with react that uses that Api, maybe tie in docker then deploy Azure. That be a good "Here's pretty much all the things you need to know" video for folks new to C#.Net. Thanks for the Awesome content!
@RahulNath
@RahulNath 2 года назад
Great suggestion - I will add that to the list. Hope you are enjoying the full series bit.ly/asp-net-core-series
@Love_You_365
@Love_You_365 2 месяца назад
I just wanna say Wonderful and Amazing method in which you covered this topic. ❤Love from Pakistan
@RahulNath
@RahulNath 27 дней назад
Very happy to hear it helped! Hope you are enjoying the series bit.ly/asp-net-core-series
@efearslan7398
@efearslan7398 Год назад
OMG your way of explaining things is so clear and structured! Your way of presenting is a bit mechanic but you are surely a MASTER of teaching!
@coolnavjot31
@coolnavjot31 Год назад
Nice Explained Rahul. Thank you
@RahulNath
@RahulNath Год назад
Thanks and welcome!
@garethhodgson9403
@garethhodgson9403 3 года назад
All your videos are amazing! Has to be the best channel for .net devs.
@RahulNath
@RahulNath 3 года назад
Glad you think so Gareth! 😀
@rajeshselvam564
@rajeshselvam564 3 года назад
You are giving such a wonderful explanation in each topic. I have seen many videos in dotnet core but your videos is my first preference after seen your videos first time...pls do more videos it would definitely help lot of folks like me...
@RahulNath
@RahulNath 3 года назад
Thank you Rajesh for letting me know. I am happy that these are helping you. Do let know if you want any specific topics covered!
@RAM-ff8dy
@RAM-ff8dy 3 года назад
Excellent video..looking forward for more Asp net core videos
@RahulNath
@RahulNath 3 года назад
Sure 👍
@juhairahamed5342
@juhairahamed5342 2 года назад
Good Explanation
@RahulNath
@RahulNath 2 года назад
Thanks and welcome. Do checkout the full series here bit.ly/asp-net-core-series
@jesusmendoza6536
@jesusmendoza6536 Год назад
Best of all time!
@RahulNath
@RahulNath Год назад
Thank you Jesus! You might also like this which covers different options when building an app www.rahulpnath.com/blog/handling-application-configuration/
@ppcuser100
@ppcuser100 2 года назад
Beautiful lecture, so clear and so comprensive 🙏 Kept you in my favorites.
@RahulNath
@RahulNath 2 года назад
Yay, thank you and happy you like it! Do check out the full series here bit.ly/asp-net-core-series
@tonyburg
@tonyburg Год назад
wow, this was definitely better than reading Microsoft documentation, thanks!
@RahulNath
@RahulNath Год назад
Glad you liked it! Do check out the full series bit.ly/asp-net-core-series
@hritikagarwal7676
@hritikagarwal7676 3 года назад
Very well explained. Helped me a lot. Thanks for the content.
@RahulNath
@RahulNath 3 года назад
Glad it helped Hritik. Do check out my other videos in the series, where I explain each of the ASP NET Building blocks in detail ru-vid.com/group/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.
@arminsh7068
@arminsh7068 3 года назад
Nice one, please Continue..
@RahulNath
@RahulNath 3 года назад
Sure will. Let know if you are looking for any particular topics.
@anfield6321
@anfield6321 2 года назад
MAKING VIDEOS AT 4 IN THE MORNING, COOOOOOOOOL
@RahulNath
@RahulNath 2 года назад
Haha, that's when the house is the quietest. All my videos are recorded during that time.
@md.ajijulhoque2190
@md.ajijulhoque2190 3 года назад
Very informative 👍
@RahulNath
@RahulNath 3 года назад
Happy it helped 😀👍
@empathetic24671
@empathetic24671 Год назад
Thanks for the video
@sreescorner
@sreescorner Год назад
Thank you so much for this video, it is very clear
@RahulNath
@RahulNath 11 месяцев назад
Glad to hear that! Do check out the full series bit.ly/asp-net-core-series
@prabodhafonseka6287
@prabodhafonseka6287 Год назад
Your videos are very interesting and explains topics very clearly. Thanks a lot. Keep up the good work!!!
@RahulNath
@RahulNath Год назад
Thanks, will do! Happy to hear that Prabodha
@niroshanmanoharan4295
@niroshanmanoharan4295 3 года назад
Another great video. Your teaching skill is awesome. Thank you Rahul.
@RahulNath
@RahulNath 3 года назад
Thanks again 😀 I should give credit to my mom who is a teacher
@niroshanmanoharan4295
@niroshanmanoharan4295 3 года назад
I can notice the smiles and "ha ha" in your comments. But when it coming to teaching I am so strict. 😀😀😀. Convey my Thanks to your loving amma.
@RahulNath
@RahulNath 3 года назад
@@niroshanmanoharan4295 Haha yes, Still trying to work out being more relaxed with the camera on. Sure will do 😀
@jackdesparrow4783
@jackdesparrow4783 Месяц назад
fantastic job :)
@RahulNath
@RahulNath 27 дней назад
Thank you very much Jack! Hope you are liking the ASP Series bit.ly/asp-net-core-series
@shivaganga9148
@shivaganga9148 11 месяцев назад
well explained bro
@RahulNath
@RahulNath 11 месяцев назад
Thank you 🙂Hope you like the full series bit.ly/asp-net-core-series
@edadson
@edadson 5 месяцев назад
Good job!
@RahulNath
@RahulNath 5 месяцев назад
Thanks! Hope you are liking the series bit.ly/asp-net-core-series
@daryoes
@daryoes 3 года назад
Great job, thank you!
@RahulNath
@RahulNath 3 года назад
Thank you too!
@nazarinebeats5521
@nazarinebeats5521 2 года назад
This is high value, I would buy a course from you!
@RahulNath
@RahulNath 2 года назад
Thank you Nazarine. My only course right now is on AWS Lambda bit.ly/aws-lambda-udemy What else would you like to see?
@juniorzucareli
@juniorzucareli 2 года назад
you're a beast, great video!
@RahulNath
@RahulNath 2 года назад
Thank you! Hope you are enjoying the full series bit.ly/asp-net-core-series
@schweppesmandarin8839
@schweppesmandarin8839 2 года назад
amazing tutorial! really clearly explained
@RahulNath
@RahulNath 2 года назад
Glad it was helpful! Do check out the full series here bit.ly/asp-net-core-series I am sure you will like it!
@schweppesmandarin8839
@schweppesmandarin8839 2 года назад
@@RahulNath Thank you very much, I am struggling with an implementation in my project. Do you have knowledge on thread safety and ConcurrentDictionary class ?
@RahulNath
@RahulNath 2 года назад
@@schweppesmandarin8839 Sure yes - might need some more details of the problem to help you. Contact details are on the about page, if it's something that does not fit in a comment.
@dhanrajpairaiturkar1240
@dhanrajpairaiturkar1240 Год назад
Hi @RahulNath. Great job with the high quality content. Your .NET videos are the best. However it would be nice if you could make the same videos that you have in this series for .NET 6.0. I understood the .NET 3.1 configuration. But stillconfused on .NET 6.0, as there is no startup class there. Thanks and appreciate the hard work!
@RahulNath
@RahulNath Год назад
Glad you like these videos and the series bit.ly/asp-net-core-series I will do a follow up video, but nothing much has changed that actually. It's only that the Startup.cs is now moved into the Program.cs. All the other functionality still holds the same. Are you facing any issues with any of the code?
@bdd740
@bdd740 2 года назад
Thanks a lot for great content.
@RahulNath
@RahulNath 2 года назад
Glad you liked it! Do check out the full series here bit.ly/asp-net-core-series
@bdd740
@bdd740 2 года назад
​@@RahulNath​I am doing it right now. Thanks a lot.
@RahulNath
@RahulNath 2 года назад
@@bdd740 Do let me know your feedback and suggestions 👍
@ganirban82
@ganirban82 3 года назад
Thank you for super vid lesson. You have shown in-memory implementation at last. Actually any cloud native or modernization app should not use sticky session storage at application level so, Can we use above in-memory implementation for (for small data pushing and retrieving) pushing data at one action method of a controller and then retrieving that data another action method of an another controller(replacement of session storage)? Many Thanks,
@RahulNath
@RahulNath 3 года назад
Thank you. What kind of data are you intending to store in memory? If it's something you need even after an app restart, then no.
@ganirban82
@ganirban82 3 года назад
@@RahulNath , thank you for replay. Then what is replacement of sticky session storage at application level(server memory management) with .NET-Core-Web Many Thanks,
@becomingweleteeyesus6735
@becomingweleteeyesus6735 2 года назад
Great tutorial. Thanks. How did you get the definition of the methods by pressing F12? I only get the interfaces not the method definitions.
@RahulNath
@RahulNath 2 года назад
Thank you Seble. That’s a feature in Rider IDE and one of the reasons I use that for these videos . Easier to explain 😀
@aslbekabdullaev
@aslbekabdullaev Год назад
💣💣💣
@RahulNath
@RahulNath Год назад
🚀🚀🚀 bit.ly/asp-net-core-series
@clashclan4739
@clashclan4739 2 года назад
Hi Bro, From where/which source you got this in-depth knowledge. so impressive!!!!!!!!!!!!!!!!
@RahulNath
@RahulNath 2 года назад
Thank you a lot and glad you are liking the videos. It's mostly been reading around the Microsoft documentation.
@barwalgayatri4655
@barwalgayatri4655 2 года назад
Please please Please Make video 1) How to handle Huge Record Output if Records if records are of of thousands of rows 2) RabbitMQ for async Comm between Microservices . will you ??
@RahulNath
@RahulNath 2 года назад
Thank you for the suggestion Barwal. 1. What are you looking to do after reading 1000's of records? Please provide more details on your scenario 2. Don't think I'll do one specific to RabbitMQ. I have done one recently using Azure Queue Storage here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5oTX6srQdOE.html What in particular are you looking for here?
@barwalgayatri4655
@barwalgayatri4655 2 года назад
@@RahulNath Recently in Interviews , they keep on asking How will you Handle HttpResponse if the O/p Records are too large in Number. Also in one company , They Gave me assignment which was to Create API To Display COVID patient , Count , Death ,, COuntrywise , How to handle this if Records are in very large in number . I was not able to answer / Code this when they ask what to do if records are more than 1000....
@RahulNath
@RahulNath 2 года назад
@@barwalgayatri4655 If all this data needs to be exposed on an API endpoint, you will need to paginate, so that you retrieve the data page-by-page. Each page will have only limited data and the API will also query only data for that page. Does that help?
@yusongliew3680
@yusongliew3680 3 года назад
Hi, I wanna to ask about this config. Let's say, I already publish this project into my local PC folder. My setting file have included the database IP, but maybe I want change the setting file IP in the future. When I running the project, the setting still based on the previous IP instead of new IP. How can I solve this issues?
@RahulNath
@RahulNath 3 года назад
You can update it in the appsettings.json and it will automatically pick it up, since it is configured to reload on file change. If you are deploying to a Cloud Environment you can use Azure App Configuration to dynamically change configuration values ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VEjYW14WKRM.html Let me know if that answers your question.
@partisanemo2079
@partisanemo2079 2 года назад
Awesome! I wonder if all this is applicable and pertinent to Blazor WebAssembly non-ASP.NET hosted.
@RahulNath
@RahulNath 2 года назад
Not sure - haven't been doing any Blazor. Do let me know if you were able to!
@koolmint-wf4lh
@koolmint-wf4lh Год назад
I am still confused one thing : how to publish my project, in VS2022 using Web Deploy, to my production environment, and the SQL server connection string will be switched to production db after the publish? can you please help? thanks
@mohsinbhat3895
@mohsinbhat3895 2 года назад
please give videos on web apis
@RahulNath
@RahulNath 2 года назад
What videos are you looking for ? Here’s the full ASP Series ru-vid.com/group/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@rajendrank9582
@rajendrank9582 3 года назад
Is there any way we can reload the configuration without going to appsetting.json. for example, logging is set to warning in appsettings.json and I want to change to trace for some time like I need verbose for some reason. Can I achieve this without modifying the appsettings.json?
@RahulNath
@RahulNath 3 года назад
How do you intend to achieve this? What would trigger the change, would it be an endpoint in the application or some event within the application code, without manual intervention? This Github issue talks about something similar and has some inputs github.com/dotnet/AspNetCore.Docs/issues/15698 Let know if that helps.
@rajendrank9582
@rajendrank9582 3 года назад
@@RahulNath Trigger can be an endpoint response value, and using an IHostedService I can keep polling to this endpoint and the moment value returned as 'Verbose' for example I need to set the entire logging level to 'Trace', ya definitely without manual intervention. Currently what I did was setting values in appsettign.json to the desired value through reading and writing the json file. So I looking for a alternative.
@atmanirbharbharat
@atmanirbharbharat 3 года назад
i am creating Multi tenant application .in that every tenant have different database. i want to set database connection string in memory for each tenet. and if i update connection string in database it will aslo update in memory. please help me. but i dont want to use entity framework
@RahulNath
@RahulNath 3 года назад
Not sure if I understand your question fully. Where do you want to save your configuration? Is it in the configuration file or in a 'master database' (not specific to tenant)? You can write a custom configuration source like shown here code-maze.com/aspnet-configuration-creating-custom-provider/, if it is in a database that you want to store it and refresh it. Alternatively you can keep the connection strings in a centralized vault like Key Vault and fetch it from there and keep it in you app memory and autoamtically refresh it. Check out this video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6l_kpygO0Ic.html Let know if that helps or if you have additional questions.
@yogeshbondi7321
@yogeshbondi7321 2 года назад
Hi Rahul, How do we setup in other editors to see the source code. Do you already have a video explaining that ? and also the way to see the source code in Git source too.
@RahulNath
@RahulNath 2 года назад
Rider automatically does that for me - which is mostly why I used that IDE to show these demo's. I haven't set that up in Visual Studio and not sure if it's possible. (maybe things have changed with VS2022, need to check)
@devaliero-3d597
@devaliero-3d597 2 года назад
But is it possible to write to configuration using some build-in net core options?
@RahulNath
@RahulNath 2 года назад
Sorry didn't understand the question - Can you elaborate what you are trying to achieve?
@devaliero-3d597
@devaliero-3d597 2 года назад
@@RahulNath Thanks for response, Nath. I meant if is it possible to have write access. But it is not, we can have only read access using IConfiguration.
@uchitesting
@uchitesting 2 года назад
Hi. I do that now that we have .NET 6. There are differences in both how to code and results. There is no more Startup.cs and its content got moved to Program.cs. There is no more Configure or ConfigureServices methods. There is no IConfiguration injected in the constructor neither. So I did search a bit to check how to do. Both builder and app identifiers have a Configuration property. Console.WriteLine($"MyKey from builder => {builder.Configuration["MyKey"]}"); Console.WriteLine($"MyKey from app => {app.Configuration["MyKey"]}");
@uchitesting
@uchitesting 2 года назад
Thanks for the video. It was awesome.
@RahulNath
@RahulNath 2 года назад
Sory missed replying to this - Hope you were able to get everyting working. I might do a follow up on .NET 6. Most concepts remain the same, mostly moved places
@uchitesting
@uchitesting 2 года назад
@@RahulNath Maybe you could better do your series on LTS versions for longer value, but there are still people working on .NET Framework or older versions of .NET Core. But no problem Rahul. Your videos are helpful and still relevant. I often take courses from other people that are outdated but also still relevant. It needs a bit of digging but perfectly reachable. I just wanted to let anyone know should they start today. I also have the sources on my GitHub but I won't provide a link for it seems comments with one tends to be deleted. I'll keep on learning from you. Cheers. 💯
@RahulNath
@RahulNath 2 года назад
​@@uchitesting Great to hear that - Yes focusing on LTS versions sounds a good idea, otherwise things keep changing too fast to catch up with videos 😀 Yeah youtube does auto delete comments, I guess it is now becoming better at identifying valid links - Worth giving it a try and Thank you!!
@jesusmendoza6536
@jesusmendoza6536 Год назад
Hello, do you have a .NET course ? On Udemy o something like that.?
@RahulNath
@RahulNath Год назад
Not at the moment Jesus. I only have one Udemy course on Lambda bit.ly/aws-lambda-udemy What would you like to see in a .NET course? The full ASP Series is here bit.ly/asp-net-core-series
@jesusmendoza6536
@jesusmendoza6536 Год назад
Yup, to be honest at that time I didn’t see, but yeah. I see, absolutely one of bests. 👏
@RahulNath
@RahulNath Год назад
@@jesusmendoza6536 Thank you Jesus!!
@lakshanmadubashika3248
@lakshanmadubashika3248 2 года назад
could you make a new vedio for dotnet 6 configuration
@RahulNath
@RahulNath 2 года назад
Sure I've been planning to so some new .NET 6 videos. Will do it as part of it!
@lakshanmadubashika3248
@lakshanmadubashika3248 2 года назад
@@RahulNath Thank you
@prateekbhardwaj9943
@prateekbhardwaj9943 6 месяцев назад
u can improve videos if u improve emotions, and some voice modulation..plain expression and body language is less engaging
@rrcoura
@rrcoura 3 года назад
Good video, but you can lower the size of your face showing, and please, be more unformal.
@RahulNath
@RahulNath 3 года назад
Glad you liked the video and thank you for the feedback! Yes the size of my face was way too big in this one. I fixed it in my recent videos. Do let know your thoughts if you get a chance to watch one of them. And about unformal, yes I am working on it. The moment I switch on the camera, the serious face jumps out. 😀
@rrcoura
@rrcoura 3 года назад
Another question, is there a way to get a License of Rider the IDE you are using?
@RahulNath
@RahulNath 3 года назад
​@@rrcoura I have a license as part of the MVP programme. You can buy a license here (and there are some offers too, if you fall into any of that) www.jetbrains.com/rider/buy/#personal?billing=yearly. Alternatively, you can also try their Early access program for free (if you want to trial it) www.jetbrains.com/rider/nextversion/ Hope that helps
@juhairahamed5342
@juhairahamed5342 Год назад
Good Explanation
@RahulNath
@RahulNath Год назад
Thanks for liking. The full series is here bit.ly/asp-net-core-series
@barwalgayatri4655
@barwalgayatri4655 2 года назад
Please please Please Make video 1) How to handle Huge Record Output if Records if records are of of thousands of rows 2) RabbitMQ for async Comm between Microservices . will you ??
@RahulNath
@RahulNath 2 года назад
Replied here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5GlgHV_12-k.html&lc=Ugx8OJ4UpefrHYUjAFJ4AaABAg.9SzdyYZMm-W9SznHUZp5Bk (Next time please avoid copy pasting comment, as I've to copy paste replies too 😀)
Далее
Brutally honest advice for new .NET Web Developers
7:19
Getting Started with OpenTelemetry in .NET
19:56
Просмотров 56 тыс.
How He Got $600,000 Data Engineer Job
19:08
Просмотров 23 тыс.