Concurrent Hosted Service in .NET 8 | .NET Conf 2023

Sdílet
Vložit
  • čas přidán 16. 11. 2023
  • Before .NET 8, hosted services were started and stopped sequentially, with each service's StartAsync and StopAsync methods awaiting completion before the next service's methods were triggered. This default behavior, though mostly fine, could cause problems, particularly with slow services delaying the application's overall start or shutdown. In .NET 8, developers now have the option to enable concurrent start and/or stop behavior for registered hosted services using the new properties in HostOptions. This allows services to start and stop concurrently, potentially improving application startup and shutdown times.
    Blog: aka.ms/dotnet/blog
    Twitter: aka.ms/dotnet/twitter
    TikTok: aka.ms/dotnet/tiktok
    Mastodon: aka.ms/dotnet/mastodon
    LinkedIn: aka.ms/dotnet/linkedin
    Facebook: aka.ms/dotnet/facebook
    Docs: learn.microsoft.com/dotnet
    Forums: aka.ms/dotnet/forums
    🙋‍♀️Q&A: aka.ms/dotnet-qa
    👨‍🎓Microsoft Learn: aka.ms/learndotnet
    #dotnet
  • Věda a technologie

Komentáře • 10

  • @acodersjourney
    @acodersjourney Před 6 měsíci +3

    You're a valuable contributor to the CZcams community.

  • @Rahulsapkota
    @Rahulsapkota Před měsícem

    got a good insight, thankyou for the wonderful video :)

  • @Hantick
    @Hantick Před 6 měsíci +2

    Thinking about using it for having my API's project email sender project as a separate Hosted Service

  • @fahimeabouhamze6618
    @fahimeabouhamze6618 Před 6 měsíci

    Thank you ✌

  • @DevEmpower
    @DevEmpower Před 7 měsíci +1

    👍👍❤❤

  • @KiaAlireza
    @KiaAlireza Před 7 měsíci +1

    👏

  • @kwiacek73
    @kwiacek73 Před 6 měsíci

  • @ote8458
    @ote8458 Před 6 měsíci +1

    i guess saeed was a junior software developer when he was born

  • @mehranlabour
    @mehranlabour Před 6 měsíci +1

    @sa-es-ir Perfect As Always