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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 119

  • @RahulNath
    @RahulNath  4 ปีที่แล้ว +10

    Source Code - rahulpnath.visualstudio.com/DefaultCollection/TH-cam%20Samples/_git/configuration

  • @starman9000
    @starman9000 4 ปีที่แล้ว +25

    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 ปีที่แล้ว +3

      Thanks again . I am extremely happy that you are finding these content useful 😀

  • @sagarmistry6210
    @sagarmistry6210 หลายเดือนก่อน

    Understanding .NET topics were never this easy. Thanks a ton Rahul :)

  • @williy_cole
    @williy_cole 2 ปีที่แล้ว +5

    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

  • @effearslan
    @effearslan ปีที่แล้ว

    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!

  • @rajeshselvam564
    @rajeshselvam564 3 ปีที่แล้ว +2

    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!

  • @garethhodgson9403
    @garethhodgson9403 3 ปีที่แล้ว +2

    All your videos are amazing! Has to be the best channel for .net devs.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Glad you think so Gareth! 😀

  • @RAM-ff8dy
    @RAM-ff8dy 4 ปีที่แล้ว +2

    Excellent video..looking forward for more Asp net core videos

  • @ppcuser100
    @ppcuser100 2 ปีที่แล้ว +1

    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

  • @hritikagarwal7676
    @hritikagarwal7676 3 ปีที่แล้ว +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 th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html.

  • @tonyburg
    @tonyburg 2 ปีที่แล้ว

    wow, this was definitely better than reading Microsoft documentation, thanks!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you liked it! Do check out the full series bit.ly/asp-net-core-series

  • @Love_You_365
    @Love_You_365 4 หลายเดือนก่อน

    I just wanna say Wonderful and Amazing method in which you covered this topic. ❤Love from Pakistan

    • @RahulNath
      @RahulNath  2 หลายเดือนก่อน

      Very happy to hear it helped! Hope you are enjoying the series bit.ly/asp-net-core-series

  • @juhairahamed5342
    @juhairahamed5342 2 ปีที่แล้ว +1

    Good Explanation

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thanks and welcome. Do checkout the full series here 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

  • @coolnavjot31
    @coolnavjot31 ปีที่แล้ว +1

    Nice Explained Rahul. Thank you

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thanks and welcome!

  • @md.ajijulhoque2190
    @md.ajijulhoque2190 3 ปีที่แล้ว +2

    Very informative 👍

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Happy it helped 😀👍

  • @niroshanmanoharan4295
    @niroshanmanoharan4295 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      @@niroshanmanoharan4295 Haha yes, Still trying to work out being more relaxed with the camera on. Sure will do 😀

  • @arminsh7068
    @arminsh7068 4 ปีที่แล้ว +2

    Nice one, please Continue..

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Sure will. Let know if you are looking for any particular topics.

  • @ganirban82
    @ganirban82 3 ปีที่แล้ว +2

    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 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว

      Thank you Seble. That’s a feature in Rider IDE and one of the reasons I use that for these videos . Easier to explain 😀

  • @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?

  • @sreescorner
    @sreescorner ปีที่แล้ว

    Thank you so much for this video, it is very clear

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      Glad to hear that! Do check out the full series bit.ly/asp-net-core-series

  • @empathetic24671
    @empathetic24671 ปีที่แล้ว

    Thanks for the video

  • @daryoes
    @daryoes 4 ปีที่แล้ว +2

    Great job, thank you!

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thank you too!

  • @shivaganga9148
    @shivaganga9148 ปีที่แล้ว

    well explained bro

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thank you 🙂Hope you like the full series bit.ly/asp-net-core-series

  • @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

  • @yusongliew3680
    @yusongliew3680 3 ปีที่แล้ว +1

    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 th-cam.com/video/VEjYW14WKRM/w-d-xo.html
      Let me know if that answers your question.

  • @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/

  • @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?

  • @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.

  • @yogeshbondi7321
    @yogeshbondi7321 3 ปีที่แล้ว

    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)

  • @edadson
    @edadson 7 หลายเดือนก่อน

    Good job!

    • @RahulNath
      @RahulNath  7 หลายเดือนก่อน

      Thanks! Hope you are liking the series bit.ly/asp-net-core-series

  • @jackdesparrow4783
    @jackdesparrow4783 3 หลายเดือนก่อน

    fantastic job :)

    • @RahulNath
      @RahulNath  2 หลายเดือนก่อน

      Thank you very much Jack! Hope you are liking the ASP Series bit.ly/asp-net-core-series

  • @schweppesmandarin8839
    @schweppesmandarin8839 3 ปีที่แล้ว

    amazing tutorial! really clearly explained

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +1

      @@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  3 ปีที่แล้ว

      @@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.

  • @rajendrank9582
    @rajendrank9582 3 ปีที่แล้ว +1

    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.

  • @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.

  • @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.

  • @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!

  • @bdd740
    @bdd740 2 ปีที่แล้ว

    Thanks a lot for great content.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      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 👍

  • @atmanirbharbharat
    @atmanirbharbharat 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      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. th-cam.com/video/6l_kpygO0Ic/w-d-xo.html
      Let know if that helps or if you have additional questions.

  • @juniorzucareli
    @juniorzucareli 2 ปีที่แล้ว

    you're a beast, great video!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Thank you! Hope you are enjoying the full series bit.ly/asp-net-core-series

  • @barwalgayatri4655
    @barwalgayatri4655 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว

      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 th-cam.com/video/5oTX6srQdOE/w-d-xo.html
      What in particular are you looking for here?

    • @barwalgayatri4655
      @barwalgayatri4655 3 ปีที่แล้ว +1

      @@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  3 ปีที่แล้ว

      @@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?

  • @jesusmendoza6536
    @jesusmendoza6536 ปีที่แล้ว

    Hello, do you have a .NET course ? On Udemy o something like that.?

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      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!!

  • @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 ปีที่แล้ว +1

      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!!

  • @mohsinbhat3895
    @mohsinbhat3895 2 ปีที่แล้ว +1

    please give videos on web apis

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      What videos are you looking for ? Here’s the full ASP Series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @aslbekabdullaev
    @aslbekabdullaev ปีที่แล้ว

    💣💣💣

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      🚀🚀🚀 bit.ly/asp-net-core-series

  • @lakshanmadubashika3248
    @lakshanmadubashika3248 2 ปีที่แล้ว

    could you make a new vedio for dotnet 6 configuration

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Sure I've been planning to so some new .NET 6 videos. Will do it as part of it!

    • @lakshanmadubashika3248
      @lakshanmadubashika3248 2 ปีที่แล้ว +1

      @@RahulNath Thank you

  • @prateekbhardwaj9943
    @prateekbhardwaj9943 8 หลายเดือนก่อน

    u can improve videos if u improve emotions, and some voice modulation..plain expression and body language is less engaging

  • @rrcoura
    @rrcoura 3 ปีที่แล้ว +2

    Good video, but you can lower the size of your face showing, and please, be more unformal.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +2

      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 ปีที่แล้ว +1

      Another question, is there a way to get a License of Rider the IDE you are using?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      ​@@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 2 ปีที่แล้ว

    Good Explanation

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thanks for liking. The full series is here bit.ly/asp-net-core-series

  • @barwalgayatri4655
    @barwalgayatri4655 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      Replied here th-cam.com/video/5GlgHV_12-k/w-d-xo.html&lc=Ugx8OJ4UpefrHYUjAFJ4AaABAg.9SzdyYZMm-W9SznHUZp5Bk
      (Next time please avoid copy pasting comment, as I've to copy paste replies too 😀)