Implement Dependency Injection in ASP.NET Core

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @YOUTUBE_IS_WOKE
    @YOUTUBE_IS_WOKE 3 года назад +1

    Really, really informative. I hope you create more mvc applications and APIs in C# . I've subscribed! I'm learning so much from your videos, I liked how you also showed to refactor the services to be in a separate static class like a factory.

  • @aleksanderdahle1038
    @aleksanderdahle1038 2 года назад

    this cannel is under rated !! thank you so much for this!!

  • @weamhaleemi4984
    @weamhaleemi4984 2 года назад

    Great tutorial !!

  • @prasanthkalai9048
    @prasanthkalai9048 2 года назад

    Really Awesome .. Great

  • @mohanaPriya-wr1lf
    @mohanaPriya-wr1lf 2 года назад

    Clearly explained👍✌️

  • @vikramsair
    @vikramsair 2 года назад

    Very informative man damn good explanation

  • @Mangesh20
    @Mangesh20 3 года назад +1

    awesome tutorial

  • @ezzaldeen
    @ezzaldeen 3 года назад +1

    Thanks brother 😊

  • @imikhan83
    @imikhan83 2 года назад

    Thank you 👌

  • @tonybapuji5956
    @tonybapuji5956 3 года назад

    This is very helpful, thank you very much!

  • @somerandomusernameeman
    @somerandomusernameeman 3 года назад +1

    thanks a lot
    it is very help ful

  • @XabierLorente
    @XabierLorente 3 года назад

    So good explanation!

  • @TheMostBeautifulSights
    @TheMostBeautifulSights 3 года назад

    Thank you so much!

  • @artyspost
    @artyspost 3 года назад

    It would be great if you had both projects for download, one with the new operator and the DI version for comparison.

  • @batuhanyerinde937
    @batuhanyerinde937 3 года назад +1

    Perfect!

  • @brahmcdude685
    @brahmcdude685 3 года назад +1

    terrific

  • @LukeSamkharadze
    @LukeSamkharadze 3 года назад

    At 10:55, I did not get why you removed CurrencyService from scoped services, you provided HttpClient but CurrencyService also needs to be injected in other controllers yea?

    • @Etheregod
      @Etheregod 3 года назад

      You are actually adding it from HttpClient services, he just changed the scoped to this, but the injection is the same. What I don't get is what would happen if you add another HttpClient service with another class.

    • @LukeSamkharadze
      @LukeSamkharadze 3 года назад

      @@Etheregod what if I wanted CurrencyService to be added as a Singleton?

  • @thirumald
    @thirumald 2 года назад

    Share this code please