Coding Shorts: .NET 8 - Introducing Keyed Services

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 12

  • @sendoganyuksel4085
    @sendoganyuksel4085 8 місяців тому +1

    Thank you for this wonderful explanation. I learned something new about .net.

  • @DirkStraussOnline
    @DirkStraussOnline 9 місяців тому +2

    Liked and subscribed! I love your content... Your style of explaining things is so relaxed, it makes understanding the subject matter much easier. Please post more .NET 8 goodies ... pretty please!

  • @viniciussilvadeandrade243
    @viniciussilvadeandrade243 9 місяців тому +3

    Nice to know you will update your courses on Pluralsight Shawn, thank you so much for mentioning that! And of course, thank you for keep creating this amazing content!

  • @marcosphs
    @marcosphs 9 місяців тому

    👏

  • @_IGORzysko
    @_IGORzysko 9 місяців тому +1

    Hi Shawn, thanks for the video! Do you have any example on your mind when keyed services would be useful in reallife applications? 🤔
    It is not quite often when one uses explicit instances creation in Di and etc.

    • @swildermuth
      @swildermuth  9 місяців тому +3

      Image registering a DbContext per customer that you could get a DbContext based on the request user. This isn't a big feature use, but there are cases when you will be able to avoid subclassing an interface to make DI work.

  • @Kingside88
    @Kingside88 9 місяців тому

    Autofac already had this function in 1980.
    So I still miss features like assembly scan.
    But for the most tiny apps and services the Microsoft think should be good enough

    • @swildermuth
      @swildermuth  9 місяців тому

      Luckily, Autofac (et al.) can plug in instead of using the default. I'm just happy that people are finally not fighting using DI.

    • @Kingside88
      @Kingside88 9 місяців тому

      @@swildermuth Thats true