Compartilhar via


WebHostBuilderExtensions.UseTestServer Método

Definição

Sobrecargas

UseTestServer(IWebHostBuilder)

Habilita o TestServer serviço.

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Habilita o TestServer serviço.

UseTestServer(IWebHostBuilder)

Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs

Habilita o TestServer serviço.

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

Retornos

O IWebHostBuilder.

Aplica-se a

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs

Habilita o TestServer serviço.

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 as opções do servidor de teste

Retornos

O IWebHostBuilder.

Aplica-se a