Dependency Injection in C# .NET

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

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

  • @connornusser-mclemore631
    @connornusser-mclemore631 2 года назад

    I literally understood Dependency Injection within 46 seconds of the Video! this was so helpful thank you

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

    One of the most simple and on point explanations of DI

  • @belminpobric9346
    @belminpobric9346 3 года назад +8

    Hey man, just found your channel by reading reddit and it is awesome. Good explanation in this video and I like that all videos are not too long and they get to the point and explain what I need. I got tired from watching 1hr videos for stuff like this, great stuff, keep it going. Subbed.

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

      Thanks so much ! Appreciate the positive feedback. Yeah I had the same issue too with the long videos, was one of the main reasons for starting the channel 👍

  • @wingdev1228
    @wingdev1228 3 года назад +9

    Good stuff. I kept seeing the term dependency injection being thrown around, and now I know what it means. Thanks!

    • @jonowilliams26
      @jonowilliams26  3 года назад +2

      Thanks so much ! Glad the video helped 👍

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

    Well wrapped, short video practical c# will be highly appreciated, by the just found ut video and subscribed and dingged the bell.

  • @AjithKumarRS
    @AjithKumarRS 3 года назад +2

    He is back...!! Excellent video as always...

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

      Haha yeah it’s been awhile! Thanks man ! Appreciate the positive feedback

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

    Great explanation, I finally understand it. Thank you. Subbed.

  • @RichardONeil
    @RichardONeil 3 года назад +7

    Good explanation of transient, scope, singleton!

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

      Thanks a lot ! Appreciate the positive feedback!

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

    Awesome... You gave me the explanation I just needed. I appreciate

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

    Really great!! Loved this video

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

    Dope Firewatch Background!!!

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

    Best explanations ever! Thanks

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

    im realy in love with your videos . so simple to learn

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

    Thanks for keeping it concise and to the point!

  • @cristianfarcas3272
    @cristianfarcas3272 3 года назад +2

    that was a really good video, short and to the point! +1

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

    Awesome video, sorry for not being able to post two thumbs up!

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

      Thanks so much for the positive feedback

  • @影片程式
    @影片程式 2 года назад +1

    Can u make a series of basic course about C# for biginner.
    Your course is really helpful!

  • @tle-x
    @tle-x 2 месяца назад

    Amazing explanation!

  • @JoeyBob112
    @JoeyBob112 3 года назад +2

    Great content as always :)

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

    Quick and good explanation. Appreciated 👍

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

    This video is awesome...thank you

  • @gabrielstoklas3533
    @gabrielstoklas3533 3 года назад +7

    Very good theoretical explanation and overally very good video.
    One small note, next time you could show some really easy practical use for transient, scoped and singleton. I would feel more confident that i got it the right way.
    Just a suggestion, subbed anyway.

    • @jonowilliams26
      @jonowilliams26  3 года назад +2

      Thanks for the feedback Gabriel ! Yeah the next video I have in the pipeline is dependency injection best practices so will cover concrete examples. Hopefully will be released next week 👍

  • @lahiru.gambheera
    @lahiru.gambheera 3 года назад

    Gr8 explanation... Thanks a lot...

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

    thanks Jo, great explanations

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

      Thanks mate !! Appreciate the positive feedback

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

    Thanks for the great/simple explanation!!

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

    Great video man ! Also what's your keyboard looks sick !

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

      Hey Vince, thanks for the positive feedback! The keyboard is a Logitech g613

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

    Really good explanation about transient etc. But still would be great to understand when which one should I use. What's a good practice, performance etc. Why we make services as scope then for example singleton? We dont need to create a new instance for all scopes I guess it's for performance right?

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

    great explanation

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

    Hey quick question with respect to constructor injection. Let's say we have a ViewModel for a tool bar. For this example, let's say the toolbar has 10 buttons and each of those button's commands depend on a service - one service per command. The ViewModel would then create the ICommand objects to bind to the buttons, but then the VM would also need to assign services to the command objects. If we have 10 services required, would it still be good practice to pass in 10 services into the VM's constructor? Seems like that is a lot of stuff to pass into one constructor. I was also thinking I could create a service factory method, register that in DI and then pass the factory to the VM, but that smells of service locator.....

  •  3 года назад

    Hey Jhonathan! Awesome content. Which is your keyboard / mouse? I love wireless stuffs

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

    very good. thanks.

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

    I've been working as an engineer for over a year. No college heh. I knew all of this minus the actual terminology. This video connected some dots for me. Apparently I'm well versed in dependency injection and inversion of control heh.

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

      That’s great to hear the video helped you connect some dots !

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

    Thanks Jonathan ! This is really useful . Could you please speak a little bit slow so that student like me could catch up with your detail. Thanks Jonathan!

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

    Good high level explanation. It would probably be better to show an example using a container such as Microsoft's in .Net Core

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

      Thanks for the feedback Issa. Yeah the next video I have in the pipeline is dependency injection best practices so will cover concrete examples. Hopefully will be released next week 👍

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

    Still can't find a video showing an actual example.........

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

      It's literally shown 1:05

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

    Was creating a RUclips channel not worth the time?

    • @jonowilliams26
      @jonowilliams26  2 года назад +1

      What do you mean by this ? Are you asking why I don’t make videos anymore?

    • @SolomonTheStoryTeller
      @SolomonTheStoryTeller 2 года назад +1

      @@jonowilliams26 Hello Jonathan. I am glad to see your response. Your content and presentation was great. I was curious on why you didn't make additional videos.