WebHostService
WebHostService(IWebHost)
OnStart(String[])
OnStarted()
OnStarting(String[])
OnStop()
OnStopped()
OnStopping()
net10.0
namespace Microsoft.AspNetCore.Hosting.WindowsServices
{
[DesignerCategory("Code")]
[Obsolete("Use UseWindowsService and AddHostedService instead. For more information, visit https://aka.ms/aspnet/deprecate/009.", DiagnosticId = "ASPDEPR009", UrlFormat = "https://aka.ms/aspnet/deprecate/009")]
public class WebHostService : ServiceBase
{
public WebHostService(IWebHost! host);
}
}
| nuget.org | 0.0 % Reference this API |
|---|---|
| .NET | 10.0 |
Information specific to net10.0 | |
| Assembly | Microsoft.AspNetCore.Hosting.WindowsServices , Version=10.0.2.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.AspNetCore.Hosting.WindowsServices (10.0.2) net10.0 |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API