Blazor WebAssembly App Configuration (Client side & server side)

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Hi coders,
    Every serious project needs project configuration. In this video I am going to show you how to create a configuration file and use it in Blazor WebAssembly. This is done using appsettings.json, but you shouldn't and can't directly try to read it.
    The correct way to do this is using Dependency injection.
    I am going to show how to handle configuration properly both on the client side app and the server side app.
    If you like this video, don't forget to hit the like button and Subscribe to keep getting more content from me.
    #blazor #programming #dotnetprogramming

КОМЕНТАРІ • 13

  • @kdotio
    @kdotio 6 місяців тому +1

    Simple and enlightening video

  • @SharifYazdian
    @SharifYazdian Рік тому +1

    I was looking for how to switch between envrionments, you explained everything nice exept that one.

  • @EldonElledge
    @EldonElledge Рік тому

    Nice. Value packed short video on the subject matter. Thank you

  • @rgry
    @rgry 2 роки тому +1

    Nice and easy to follow!

  • @MrHatefk
    @MrHatefk 4 місяці тому

    This was more dependency injection rather than appsettings. Also did not cover how to link publish profiles to different appSettings.

  • @DieterStapelberg
    @DieterStapelberg Рік тому

    Had all the right details. Thanks :)

  • @nghiahuynh7452
    @nghiahuynh7452 Рік тому +1

    Nice video, so when i publish deploy, there're 2 appsetting.json file ?

    • @coderjeet
      @coderjeet  Рік тому

      You can have multiple appsettings in your project, yes.

  • @byphil1340
    @byphil1340 2 роки тому

    Which files can I delete for the weather app so that I can start off a new project?

    • @coderjeet
      @coderjeet  2 роки тому

      I usually delete all the views and the models. Then I put in my own