IWebHost
ServerFeatures
Services
Start()
StartAsync(CancellationToken)
StopAsync(CancellationToken)
GetTestClient(IWebHost)
GetTestServer(IWebHost)
Run(IWebHost)
RunAsService(IWebHost)
RunAsync(IWebHost, CancellationToken)
StopAsync(IWebHost, TimeSpan)
WaitForShutdown(IWebHost)
WaitForShutdownAsync(IWebHost, CancellationToken)
net10.0
namespace Microsoft.AspNetCore.Hosting
{
[Obsolete("WebHostExtensions is obsolete. Use Host.CreateDefaultBuilder or WebApplication.CreateBuilder instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008", UrlFormat = "https://aka.ms/aspnet/deprecate/008")]
public static class WebHostExtensions
{
[AsyncStateMachine(typeof(<WaitForShutdownAsync>d__2))]
public static Task! WaitForShutdownAsync(this IWebHost! host, CancellationToken token = default);
}
}
| nuget.org | 0.0 % Reference this API |
|---|---|
| .NET | 5.06.07.08.09.010.0 |
| .NET Core | 3.03.1 |
Information specific to net10.0 | |
| Assembly | Microsoft.AspNetCore.Hosting , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Requires any:
|
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API