Compartir a través de


WebHostBuilderExtensions.UseTestServer Método

Definición

Sobrecargas

UseTestServer(IWebHostBuilder)

Habilita el TestServer servicio.

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Habilita el TestServer servicio.

UseTestServer(IWebHostBuilder)

Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs

Habilita el TestServer servicio.

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

Parámetros

Devoluciones

IWebHostBuilder.

Se aplica a

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs
Source:
WebHostBuilderExtensions.cs

Habilita el TestServer servicio.

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

Parámetros

configureOptions
Action<TestServerOptions>

Configura las opciones del servidor de prueba

Devoluciones

IWebHostBuilder.

Se aplica a