WebHostBuilderExtensions
ConfigureTestContainer<TContainer>(IWebHostBuilder, Action<TContainer>)
ConfigureTestServices(IWebHostBuilder, Action<IServiceCollection>)
GetTestClient(IWebHost)
GetTestServer(IWebHost)
UseSolutionRelativeContentRoot(IWebHostBuilder, String)
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, ReadOnlySpan<String>)
UseTestServer(IWebHostBuilder)
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
net10.0
namespace Microsoft.AspNetCore.TestHost
{
public static class WebHostBuilderExtensions
{
[Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008", UrlFormat = "https://aka.ms/aspnet/deprecate/008")]
public static HttpClient! GetTestClient(this IWebHost! host);
}
}
| nuget.org | 0.0 % Reference this API |
|---|---|
| .NET | 10.0 |
Information specific to net10.0 | |
| Assembly | Microsoft.AspNetCore.TestHost , Version=10.0.1.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.AspNetCore.TestHost (10.0.1) net10.0 |
| Obsolete | ASPDEPR008: IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008. |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API