Intro to AppSettings in .NET Core - Appsettings.json, secrets.json, and more

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

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

  • @haroldpepete
    @haroldpepete 2 ปีที่แล้ว +6

    if anybody on the entire internet deserves my money for a course, that person is you, you're the man

  • @colinrey4589
    @colinrey4589 3 ปีที่แล้ว +44

    So much quality content for free!! Just crazy. You make my life as an aspiring developer way easier. I have already rebuilt many of your programms. Thank you! I m sure, you spent lots of effort and time creating this content.

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +7

      Great to hear! It is my pleasure

  • @modboxsa
    @modboxsa 3 ปีที่แล้ว +43

    Happy birthday for yesterday Tim. hope you had a good one. Love from South Africa...

  • @dayne-kora2415
    @dayne-kora2415 หลายเดือนก่อน

    You have been a massive help to my career. You deserve all your flowers. Thank you Tim Corey

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

      I'm glad my content has been so helpful!

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

    Wonderful. I only have a few months of experience with .NET Core and had always some confusion with this topic. Your video clarified my ideas a lot, I really liked the simplicity, structure and straight to the point of your explanations.

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

      I am glad it was helpful.

  • @gilneyjr
    @gilneyjr 3 ปีที่แล้ว +11

    It's amazing the way he talks. Sometimes I think that is an old friend. :-)

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

      Thank you. I appreciate that.

  • @dimasveliz6745
    @dimasveliz6745 3 ปีที่แล้ว +4

    When it comes to teaching C# I cant just think in anyone else. IamTimCorey is a channel that has built us up from lots of view points. Transparency, simplicity, experience and excellence. Even my mama says: "..Oh you're looking at this kind guy again"😅
    I strongly wish this channel to keep growing, and all the efforts that you're putting in to be paid off with anything that can be valuable to you and yours.
    Your community thanks you Tim, and so do I. Greetings from Barcelona

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

      I appreciate the kind words.

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

    Your channel is my best discovery of the year

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

    Happy Birthday and Congrats on your subscriber count Tim. I've learnt more from you in 3 years than from 15 years in the industry!!

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

    Always, I found learning material on best way and easy understanding.

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

      Great to hear!

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

    The user secrets was an oh my God there is something like that moment!!! Thank you. And your qualify is amazing thanks again.

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

    I Swear learning C# for a person coming from languages like python or JS is really frustrating and difficult. The documentation of Microsoft is really bad in terms on navigation and linking topics in a good hierarchy. You are the best in explaining the topics that can be understood by anyone!!! So much grateful for your efforts, thanks from the bottom of my heart.

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

      I'm glad my content has been helpful. Have you seen the Microsoft documentation recently, though? Check out docs.com

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

    OK, so I've just finished with your the getting started with c# list and wanted to say thanks, you really know how to teach

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

    I took the full course. What I found most valuable was the section on security, particularly, production secrets. The free video focuses heavily on the development environment, but being responsible for deployment as well, I wanted to know more about the production environment.

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

    Happy Birthday to You!!!Wish you many enthusiasm to share valuable knowledge and get the same much thanks for your great job!

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

      Thank you very much!

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

    Happy birthday Tim, your videos always make me more confident on C#, thanks a lot

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

      My pleasure! Thank you!

  • @AmritPalSingh-gv5im
    @AmritPalSingh-gv5im 3 ปีที่แล้ว +1

    Happy birthday Tim, you inspire me to work hard and progress in programming. Thanks for your efforts.

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

    Я хотел Вам сказать, что у Вас отличный, понятный и логичный английский. ;) курс по сишарп. ВЫ ЛУЧШИЙ. Вам спасибо.

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

      Спасибо, я ценю это. Я добавил ваше предложение в свой список.

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

    Happy birthday!
    Such a great video, full course is for tomorrow!

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

    Just beginning, and only getting traction with programming through this tutorials. I've been learning in .Net Framework and got comfy with the xml config file... then tried a .Net Core app and just failed. Searching around to learn how appsettings.json worked and finding little that helped. Just last night, I wondered if you'd do a video so I could get a fundamental understanding. Wake up, and hey presto! Between you and Ben Eater, I'll understand! Great teaching for a slow learner!

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

      Hang in there, you can do this!

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

    Happy belated birthday! I appreciate you for sharing your knowledge with everyone.

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

      You are so welcome

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

    Jesus @Tim, I’ve been a .net developer for 2 years. I thought I knew all there was about the app.config / web.config files. Next level stuff there Tim. Love this channel, probably the most valuable like and subscribe channel.
    I have for sure developed a different solution to things because of having to deal with the app.config file. We store our connection strings, and having a service account password in plain text is obviously not good. Needed this video 8 months ago.

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

      I am glad it was helpful, even if you needed it earlier.

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

    Thank you for this free Introduction to AppSettings. It clears up some of my questions regarding the overall structure of Projects in .Net and how the different components fit together, although I would really love to see a video on that as well. I did look through your youtube videos allas I didn't find one that seems to cover that. If it is already in existence that is great, could you please point it out to me, if not I personally think that would make a very interesting subject to see a video about, uncovering a bit more of the "magic" that seems to be going on in Visual Studio at some times.
    After this video I decided I wanted to know even more about this subject so I bought your course, thank you for creating all this wonderful content.

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

      Thank you for buying in and for the course suggestion, added to the list!

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

    Loved the video shared it with some juniors devs. You really set up a foundations for them. Keep up the good work

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

    Thanks for a clear and practical guide!

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

    Wish you a very happy birthday Tim. May god bless you and your family 🙏
    Thank you for your time and efforts 😊

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

    As always, great content Tim.
    Just a small correction. I think while reading configuration from various sources, there is no "termination logic" applied. I mean it's not like "I found this setting here, not gonna check the next sources". On contrary is the opposite, it goes through all sources and keeps overwriting values as it finds them. For example, appsettings.Development.json is the last in the chain, that's why those values override the other ones. Simply because the values get overwritten. The secrets are the last ones actually.

  • @UttamDas-ps4eo
    @UttamDas-ps4eo 3 ปีที่แล้ว

    Happy birthday Tim! Thank you for all your efforts!

  • @GG-uz8us
    @GG-uz8us 3 ปีที่แล้ว

    Learned a lot from you Tim. THANK YOU! And Happy Birthday!

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

    Thank you for such a clear and well explained overview of IConfiguration and the apsettings hierarchy! Appreciate it! Cheers.

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

    Thank you Tim for your special offer. Just bought it on your web page and I' am totally impressed. This will make a lot of challenges much easier to solve :)

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

      Awesome! I am glad it is so helpful.

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

    happy birthday Tim!!!! thanks for another amazing video!

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

    Happy birthday, Tim. I really enjoy your videos.

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

      Thank you very much!

  • @francisf.amunde2619
    @francisf.amunde2619 2 ปีที่แล้ว

    Wishing you a many more happy, blessed and fulfilling years ahead. HAPPYH BIRTH DAY TO YOU, MY MENTOR!

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

    Happy birthday to the best C# teacher on TH-cam. Always a pleasure watching your tutorials.
    Now I'm thinking maybe forcing my data access layer(normal class library project) to hold my connection strings is a bad idea.
    P.S. I only did it thinking if I have to change my frontend later on it would benefit me. Lol

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

      I am glad you see the value

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

    Happy Belated Birthday! Hope you had a great one! Hope to see the Multi-Project soon :)

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

    Thanks a lot Tim, and happy belated birthday from me in South Africa

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

    How can we handle launchsettings.json settings in Blazor Webassembly apps similarly to what you've shown here?

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

    "For those of you that are building apps in production", I'm proud to say I take that as literally as possible

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

    Happy Birthday, man! Hope you will be doing well :)
    Big thank you for your videos ^^

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

      Thank you very much!

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

    Happy delayed birthday great info. I hadn't thought that the appsettings could be that much useful.

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

      They are pretty awesome.

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

    watching 14 hours after upload, and I hope I'm not too late to say "Happy belated birthday Tim!"

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

    Big congrats on hitting 10k customers.

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

    Thank you very much for your content.

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

    Hi Tim. Another great Video! Thank you.
    By the way, 20 September was my birthday too! And of course... Happy Birthday!

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

    Happy Belated Birthday Tim !!!

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

    Happy birthday tim..
    Thank you for the video..

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

      Thank you! ... and you are welcome.

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

    Excellent stuff!

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

      Thanks!

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

      @IAmTimCorey do you have a promo to the depth course?

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

      Not currently, no. If you are on the mailing list, you will hear about any discounts.

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

    Happy birthday Tim, can please make a tutorial about clean architecture on asp.net core

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

      I will add it to the list. Thanks for the suggestion.

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

    Happy birthday Tim!

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

    Happy Birthday, Tim.

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

    You share a birthday with my youngest daughter! Happy Birthday!

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

    Hi Tim, Great videos. I am looking forward to any videos on the integration of any third party payment services like Stripe or TransferWise into .NET CORE 3.1 specifically. Thanks!

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

      I will add it to the list. Thanks for the suggestion.

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

    Great content! Thanks, Tim!

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

    Do you have a tutorial on how to handle Blazor Server App connection timeouts? Running on local works great, but when deployed to production, the connected state times out quickly.
    Thx for this video.

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

      It sounds like a server configuration issue. It should not time out quickly. That does not sound like something you would configure in C# (you can change timeouts on the C# side, though).

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

    Happy birthday Tim

  • @321zipzapzoom
    @321zipzapzoom 3 ปีที่แล้ว

    Hi Tim ..again grt content and way you present them as usual, Indeed it is a useful tool to use these keys keeping in mind the purpose we need to use yo when it comes to working real quick in agile with devops now-a-days in company Project,

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

      Glad you like them!

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

    Happy Birthday Tim

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

    Thanks Good Man, this was very usefull.

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

      You are welcome.

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

    Thanks for this.

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

    Amazing video. Loved it! (y)

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

    Happy happy birthday Tim... I wish the best for you and your family!!! Thank you very much for your efforts and all this wonderful job fokng those videos... I really love your courses and the easy and clear way that you teach... 🥰
    Pdt... I have a question...since Im doing the fundamentals course...and I want to get the course that you are offering here... how long time I will have access to this new course if I bought it? I want the gift...but I will not finish fundamentals in the next days....

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

      Thank you very much!

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

      By the way, when you purchase a course, you get lifetime access to it.

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

    love you, very nice videos.

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

    Gr8 Content Loved it!!!!!!

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

    Can we allow or deny certain Windows Authenticated users in AppSettings?

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

      I’d love to see an answer to this, it doesn’t appear to be as simple as comparing strings in the appsettings stored values with the authenticated user string

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

    programming is a costly affair and you make it affordable for us

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

    Really Great!

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

    Excellent lesson Mr. Corey!
    But can you kindly tell why we need to use appsettings.development.json when we can just use secrets.json? Is it because appsettings.development are accessible to everybody working on a project and secrets.json are only on our local machine for us exclusively? Then what’s the point of using basic appsettings.json anyway? In which situations we need to use what? Feeling a tad confused.

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

      Correct. Appsettings.development.json gets put into source control. These ae all options. You don't have to use every option. Don't try to force it. Just figure out what works best for you. For me, I most often use appsettings.json and secrets.json. However, every once in a while I'll use one of the other options.

  • @OurCloudSchool-Hindi
    @OurCloudSchool-Hindi 3 ปีที่แล้ว

    This is the first time I have seen you. 😀

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

      You should check out the Dev Questions series, where I answer questions developers and prospective developers have: th-cam.com/play/PLLWMQd6PeGY2G8Q0d_yOPc_CocyqrFRoZ.html I'm on screen for those videos every Thursday.

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

    Hi Tim, great video! Can we update "appSettings"?

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

    Hey Tim! Instead of passing the whole Configuration around Pages to get just the settings' section by way of using the IConfiguration, do you not think it's prudent to rather use the Options Pattern by way of using say the IOptionsMonitor here?

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

      I touched on that briefly in this video. It depends. You aren't hurting anything by passing the IConfiguration object around (it isn't recreating the object or using more memory). Using the Options pattern does make your life easier in certain situations though.

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

      @@IAmTimCorey Cheers mate!

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

    Happy birthday to you, I hope you make video about design pattern CQRS using Dapper

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

      I will add it to the list. Thanks for the suggestion.

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

    Belated happy birthday Tim. =)

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

    belated happy birthday, my friend

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

    hey, Mr Tim is filtering data with Linq a good idea? or we should write filtering statement inside the SQL command? I think writing one select statement and then use Linq for filtering make things easier, does this has any noticeable performance difference?

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

      Let SQL do what it does best and then let C# do what it does best. That means sort and filter in SQL whenever possible and use LINQ only after you have done as much as you can in SQL.

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

    Happy Belated Birthday Tim !!!
    Very useful video as always.
    I've successfully configured appsetting.json in WPF app after many research online.
    But I'm struggling to put it to work in MvvmCross app.
    Because the M and the VM are in a class library while the V is in WPF project. Very confusing. Looks like the bald area in my head will get larger after this. LOL
    I humbly ask if you could add it to the list of your future videos, along with DI, View Navigation and View inside a view (to create a Menu bar like TimCo Retail Manager app) for MvvmCross app.
    Thank you and wish you have a nice day Tim!

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

      Noted and added to the list. Thanks

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

    I was quite disappointed you didn't tackle the ASPNETCORE_ENVIRONMENT variable and how it can be set to stage,production,development on different deployments.

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

    What's the best way to save config settings to appsetting.json? From what I'm reading the IConfigurationRoot does not allow writing, it's read-only. So is there another way to save my settings to appsettings.json?

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

      The question is why are you trying to save it to appsettings.json? Typically, changeable settings would be stored in a database. If you really need to change appsettings.json, you would need to open it up like a text file, make the changes to the JSON structure, and re-save it.

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

      @@IAmTimCorey Thanks for the reply, Tim. I really would like to have a separate file for local application settings (pre database settings) like `appsettings.custom.json` or something. It would be a file dedicated to writing values back. I would stay out of appsettings.json and leave that as designed (read-only). I don't want the app to be 100% dependant on a DB though. I think I'll end up just making a class wrapper to take care of saving changes to a separate file like that though as you suggested.

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

    Hello Tim ,
    Thank you for your amazing content.
    would u please make a syncfusion tutorial, like how to use Syncfusion controls in your WPF application or a short tutorial about Metro Studio :)
    thx again

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

      I will add it to the list. Thanks for the suggestion.

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

      @@IAmTimCorey Thank you :)

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

    Thank you! :)

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

    Happy birthday Tim! Thanks for sharing this. It gives a good veiw. What I really miss are user settings. I will see if this topic is covered in the course. For user settings, the user must be able to change the value of a setting from the UI. After looking for a number of solutions, I now use the appsettings.json for defaults and the good old registry for other settings. (WPF desktop applications only).
    As far as I can see in the course contents, I see there is a lesson on an Options class. Does this cover user settings and how to set things up that a user can change settings?

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

      I'm hoping you saw the video by now and it added value. I do not cover cover user settings specifically

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

    Is worth mentioning that Blazor Server is a very different beast than MVC or Razor Pages. It does not scale as well for public facing website.

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

      It is different than MVC or Razor pages, but it is not true that it does not scale well. I'm not sure where you are getting that from but Microsoft did load testing in a moderate Azure Web App instance and found that they could host 20,000 simultaneous users on one web app. If you need more than that, you can offload the SignalR and/or scale the number of App instances. And that was in .NET Core 3.0 before they added performance optimizations in .NET Core 3.1 (and more are coming in .NET 5 in November). Now remember, that 20,000 number is not hits per day, it is simultaneous connections. Very few sites have that many connections at once. If you have a site that has an expectation of that many simultaneous connections or more, you already need to think about load balancing, app scaling, and more, regardless of what you choose for your web application type.

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

      @@IAmTimCorey But all of the UI interaction you do in Blazor server needs to be rendered on the server, compared to doing it with JS on the client. The latency of that server rendering is a problem for a global website. It provides terrible UX. Also, requiring an active websocket connection is more resource intensive than just serving plain html and JS. The SignalR connection also poses issues when people are browsing your website in places with spotty connection.

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

      It sounds like you are guessing here because server side rendering is faster than client side. The most popular language in the world for the web is PHP. It runs some of the largest sites out there. It is a server side rendered language that isn’t even precompiled. As for the spotty Internet connection, that will be an issue for any web app but yes, disrupting the SignalR connection would be bad. That’s why the newest update coming out in November has active retry.

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

      @@IAmTimCorey I think there's a misunderstanding here. I'm not arguing about the initial server side rendering vs client side rendering. I'm arguing about the latency introduced for every action the user performs on the website that involves dynamic content. Compared to a server side rendered JS framework with dynamic hydration, Blazor can be dog slow and uses more resources. Even the creators of Blazor are well aware of this.

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

    Thank you Tim for amazing videos you bring.
    Regarding appsettings.json file, if it is modified and saved, does this causes the application to restart?

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

    Maybe you could make a video talking about the ups and downs of developing and debugging a c# backend with Docker. Since Visual Studio adds an easy way to add Docker support.

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

      Thanks! Noted and added to the list

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

      @@IAmTimCorey Already excited 😁. I havent seen any good practical videos talking about Docker and Asp.Net. Most videos are focused only on Docker as a whole. But as you often say, other videos clearly lack context. Which makes it harder to integrate and see the value. Also I believe, Docker is and will be the next big thing. Because it's easier to make a new instance of a programm then to get every concurrency perfect. More CPU cores every year.
      PS: I have deep respect for people like you, who put quality videos for free online. I mean you take the time and talk about the important stuff even if it's less popular. When I was experimenting with Java, I had to watch trough hasty and unclear indian tutorials, which was a pain for me. Since then, I never touched Java again 😆. I rather learn C# from you! You deserve a special place in the developer community!
      Greetings from Switzerland 🇨🇭

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

    I found it helpful to play at 2x speed.

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

      I'm glad you found something that works for you.

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

    I got confused about the learning order a bit Tim. You mentioned learning 4 things in order in your latest video as following;
    C#, Blazor, Docker, and Azure, but here we are seeing Blazor in this video when we are trying to learn C# as a first step.
    As I'm trying to learn C# and everything is so messy for me, this ordering misconception makes me confused now, could you enlighten me, please?

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

    Thanks!

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

    Hey Tim amazing video, but how to create a config file from the scratch let say in a console application

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

      Just add it as a new file. Make sure to mark the file as "Copy if Newer" in the properties of the file.

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

    Hello, nice video, I enter here because I have an issue, I have a different connectionString to use in my local project than the one that is used in the Production Project... how can I do to configure for instances a connection string in development mode than production mode, because when I push my changes to the repo the connection String of my AppSettings.Json is been changed with my local Connection Strings but that's not what I want

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

    With nullable types enabled in the project, I get an error '_config' is not null here when trying to read the config.

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

      I think this is just the normal tooltip. I think the error is that the value you are trying to read is nullable and you are trying to put it in a non-nullable string type (or whatever type you are trying to put it into).

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

    I'm trying to get deeper knowledge for settings in c# and was so excited when I saw AppSettings in title, but then got a bit disappointed when I saw its for .Net CORE (I'm still primarily using framework...). Nevertheless, still found this video quite useful.
    Is there maybe .NET framework version of this video or some other resource on the topic?
    If not, is it planned? :)

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

      No there isn't one (and it isn't planned). In the .NET Framework, you put all of your settings in app.config/web.config and then you do transforms using SlowCheetah or something similar to create environment-specific override files to merge in. Then you do most of your transforms in your CI/CD process.

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

    Great video. I know you covered it, but I think it would have been more useful to me to see more examples that don't involve Razor pages. I don't want to use Razor pages, so those parts of the video left me a good amount of useless knowledge

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +4

      Razor Pages are just ASP.NET Core. Most of the settings and code are the same for all of the ASP.NET Core web types (MVC, API, and Blazor Server at least). The UI isn't the star here. The code would be the same with any of these types.

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

    Your videos are great and you are an excellent teacher.. However, your courses are really expensive for me.

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

      I am glad you are enjoying my content. As for the price, I know it can be expensive for some. That's what pays for the free content, though. Take advantage of everything that is free because some people were able to afford the paid content.

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

    Amazing as always!

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

    What if you have to obtain specific values from the Windows Registry and need those values to determine whether a database column is set or not. Instead of pulling from the Registry to display a value in a razor page in a BlazorWASM project, is there a way to store keys and values from the Registry safely in an appsettings.json file?@IAmTimCorey

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

    My launchSettings won't load into Program Main arguments are empty

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

    Do you have a video or course where you use Azure environment keys with appSettings? Nice video by the way.

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

    I'm trying to figure out how to make an appsettings.Staging.json and have it run on our staging server but I don't know how to set the environment variable to Staging when we run on the staging server.

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

    36:46 So how would the environment variable in launchSettings.json be set to production when deploying to production? Wont you need to edit that yourself and recompile the app?

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

      We don't deploy launchSettings.json to production. That's why the environment setting defaults to "production". You don't need to do anything when deploying. Since the file doesn't get deployed, the setting isn't there so the default is used.

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

      @@IAmTimCorey That makes sense now, and I also read the officials docs as well. How would you recommend setting the environment for non-prod environments? Update web.config? Set a system environment variable on the non-prod server? This part still has me scratching my head and Idk if there's a general answer to this

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

    Is appsettings.json stored on the server or the client in a Blazor Server application?

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

      On the server. Everything for Blazor Server is stored on the server. The only thing that goes to the client is processed HTML and CSS (no C# or Razor syntax) and the JavaScript file that connects the client to the server via SignalR. Except for that JavaScript file, Blazor Server is like any other server-side language (MVC, Razor Pages, API, etc.)