WebHostBuilderExtensions.UseTestServer Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
UseTestServer(IWebHostBuilder) |
Active le TestServer service. |
UseTestServer(IWebHostBuilder, Action<TestServerOptions>) |
Active le TestServer service. |
UseTestServer(IWebHostBuilder)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Active le TestServer service.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseTestServer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseTestServer (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
static member UseTestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseTestServer (builder As IWebHostBuilder) As IWebHostBuilder
Paramètres
- builder
- IWebHostBuilder
L’IWebHostBuilderopérateur
Retours
L’IWebHostBuilderopérateur
S’applique à
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Active le TestServer service.
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseTestServer (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, Action<Microsoft.AspNetCore.TestHost.TestServerOptions> configureOptions);
static member UseTestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.TestHost.TestServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseTestServer (builder As IWebHostBuilder, configureOptions As Action(Of TestServerOptions)) As IWebHostBuilder
Paramètres
- builder
- IWebHostBuilder
L’IWebHostBuilderopérateur
- configureOptions
- Action<TestServerOptions>
Configure les options du serveur de test
Retours
L’IWebHostBuilderopérateur