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

Поділитися
Вставка
  • Опубліковано 11 січ 2025
  • 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/...
    Twitter: aka.ms/dotnet/...
    TikTok: aka.ms/dotnet/...
    Mastodon: aka.ms/dotnet/...
    LinkedIn: aka.ms/dotnet/...
    Facebook: aka.ms/dotnet/...
    Docs: learn.microsof...
    Forums: aka.ms/dotnet/...
    🙋‍♀️Q&A: aka.ms/dotnet-qa
    👨‍🎓Microsoft Learn: aka.ms/learndo...
    #dotnet

КОМЕНТАРІ • 11

  • @acodersjourney
    @acodersjourney Рік тому +4

    You're a valuable contributor to the UA-cam community.

  • @Hantick
    @Hantick Рік тому +2

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

  • @Rahulsapkota
    @Rahulsapkota 8 місяців тому

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

  • @WiserMiser
    @WiserMiser 5 місяців тому

    Great stuff

  • @fahimeabouhamze6618
    @fahimeabouhamze6618 Рік тому

    Thank you ✌

  • @DevEmpower
    @DevEmpower Рік тому +1

    👍👍❤❤

  • @KiaAlireza
    @KiaAlireza Рік тому +1

    👏

  • @kwiacek73
    @kwiacek73 Рік тому

  • @ote8458
    @ote8458 Рік тому +1

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

  • @mehranlabour
    @mehranlabour Рік тому +1

    @sa-es-ir Perfect As Always