IHost
Services
StartAsync(CancellationToken)
StopAsync(CancellationToken)
CreateClient(IHost, HttpMessageHandler, Func<Uri, Boolean>)
GetFakeLogCollector(IHost)
GetFakeRedactionCollector(IHost)
GetListenUris(IHost)
GetTestClient(IHost)
GetTestServer(IHost)
Run(IHost)
RunAsync(IHost, CancellationToken)
Start(IHost)
StopAsync(IHost, TimeSpan)
UseServiceModel(IHost, Action<IServiceBuilder>)
WaitForShutdown(IHost)
WaitForShutdownAsync(IHost, CancellationToken)
net10.0-windows7.0
namespace Microsoft.Extensions.Hosting
{
public static class ServiceFakesHostExtensions
{
public static IEnumerable<Uri!>! GetListenUris(this IHost! host);
}
}
.NET | 8.09.010.0 |
---|---|
Information specific to net10.0 | |
Platforms | This API is only available when you target a specific platform: |
Windows | 7.0 |
Information specific to net10.0-windows7.0 | |
Assemblies | Microsoft.AspNetCore.Testing , Version=9.4.0.0, PublicKeyToken=31bf3856ad364e35 Microsoft.AspNetCore.Testing , Version=9.3.0.0, PublicKeyToken=31bf3856ad364e35 |
Referencing | Your project needs a package reference to |
Package | Microsoft.AspNetCore.Testing (9.4.0-preview.1.25168.1) net9.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API