Dependency Injection C# Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 июн 2023
  • 💻Watch the full tutorial: • ASP.NET Core Tutorial ...
    Dependency injection is the #1 technique you need to master to unlock the power of ASP.NET Core, given how it can significantly simplify your code and improve flexibility.
    In this video I explain what dependency injection is and then I go over a practical implementation in a simple C# based .NET REST API.
    🔥Become a Senior C# Backend Engineer: juliocasal.com/courses
    🗺️Get My Free .NET Backend Developer Roadmap: juliocasal.com/roadmap
    Join me on Patreon: / juliocasal
    Follow me on LinkedIn: / juliocasal
    Follow me on X: x.com/julioc
    #csharp #dotnet #aspnetcore

Комментарии • 21

  • @leroyvan7357
    @leroyvan7357 2 месяца назад +1

    You are awesome

  • @khaledsalah9248
    @khaledsalah9248 11 месяцев назад +1

    This is underrated, thank you sir ^_^

    • @juliocasal
      @juliocasal  11 месяцев назад

      Glad you think so!

  • @naumansubhani2453
    @naumansubhani2453 5 месяцев назад +1

    I increased playtime to 1.25x, funny cause I read a comment of someone saying you speak fast... Extremely Helping videos. I wonder why you have less subscribers. May be make more videos.

    • @juliocasal
      @juliocasal  5 месяцев назад +1

      Thank you, appreciate it!

  • @yureshtharushike1032
    @yureshtharushike1032 10 месяцев назад +1

    Great explanation. Can you make a video about how to use scoped and other types with databases and other things like you mentioned in the end please. Thank you very much.

    • @juliocasal
      @juliocasal  9 месяцев назад +1

      Here: ruclips.net/video/bKCzoR01lpE/видео.html

  • @aa-xn5hc
    @aa-xn5hc Год назад

    Brilliant, thank you

  • @imadabab
    @imadabab 7 месяцев назад +1

    Thanks a lot for this valuable explanaiton. in case you have a new class, also, you will create an interface to it to register it, so, the place you want to consume it, you have to change the interface injection to the new interface, please correct me if I'm wrong. Also, I have inheritance "Abstract Class" with some common implementation for subclasses, using DI with inheritance is impossible, because they are different concepts. I tried it a lot, I didn't succeed. Appreciate if you correct me if I'm wrong. Thanks

  • @redhotchillidazer2013
    @redhotchillidazer2013 4 месяца назад +1

    when to use singleton or addscoped? what scenario?

    • @juliocasal
      @juliocasal  4 месяца назад

      I cover that here: ruclips.net/video/AhAxLiGC7Pc/видео.html

  • @tyomidi
    @tyomidi 11 месяцев назад +1

    Check the subtitles at 0.06. Hilarious!

    • @juliocasal
      @juliocasal  11 месяцев назад +1

      Ouch! Thanks for letting me know.
      Can't do subtitles manually for all the video, but at least fixed that part.

  • @vishalgangapuram6239
    @vishalgangapuram6239 3 месяца назад +1

    Can I get that PPT it's really awsm

    • @juliocasal
      @juliocasal  3 месяца назад

      It's included in a few of my paid courses.

  • @thaerkilani5804
    @thaerkilani5804 Год назад

    the question when to use singleton , case!
    ?

  • @s.-.-.
    @s.-.-. 7 месяцев назад +2

    you are talking too fast