Session

.NET Conf 2023 Thailand: Concurrent Hosted Service in .NET 8

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.

Saeed Esmaeelinejad

Senior Software Engineer | .NET Enthusiast | Content Creator

Bangkok, Thailand

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top