Udostępnij za pośrednictwem


WebHostBuilderExtensions.UseTestServer Metoda

Definicja

Przeciążenia

UseTestServer(IWebHostBuilder)

Włącza usługę TestServer .

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Włącza usługę TestServer .

UseTestServer(IWebHostBuilder)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Włącza usługę TestServer .

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

Parametry

builder
IWebHostBuilder

Element IWebHostBuilder.

Zwraca

Element IWebHostBuilder.

Dotyczy

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Włącza usługę TestServer .

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

Parametry

builder
IWebHostBuilder

Element IWebHostBuilder.

configureOptions
Action<TestServerOptions>

Konfiguruje opcje serwera testowego

Zwraca

Element IWebHostBuilder.

Dotyczy