You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET 8 introduced the interface IHostedLifecycleService, which extends IHostedService with some additional callbacks such as StartingAsync() and StartedAsync(). The original API proposal (dotnet/runtime#86511) noted that
This interface is located in the Microsoft.Extensions.Hosting.Abstractions assembly which will be supported by the default host (in the Microsoft.Extensions.Hosting assembly). Other hosts will need to implement IHostedService in order to support this new interface.
As far as I can see, WebHost did not gain support for this new feature yet.
Is there an existing issue for this?
Describe the solution you'd like
.NET 8 introduced the interface
IHostedLifecycleService
, which extendsIHostedService
with some additional callbacks such asStartingAsync()
andStartedAsync()
. The original API proposal (dotnet/runtime#86511) noted thatAs far as I can see, WebHost did not gain support for this new feature yet.
aspnetcore/src/Hosting/Hosting/src/Internal/WebHost.cs
Lines 22 to 30 in 6d1573a
aspnetcore/src/Hosting/Hosting/src/Internal/HostedServiceExecutor.cs
Lines 8 to 47 in 6d1573a
Would it be possible to add support for
IHostedLifecycleService
toWebHost
?The text was updated successfully, but these errors were encountered: