WebHostBuilderExtensions.UseTestServer Method

Definition

Overloads

UseTestServer(IWebHostBuilder)

Enables the TestServer service.

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Enables the TestServer service.

UseTestServer(IWebHostBuilder)

Enables the 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

Parameters

Returns

IWebHostBuilder

The IWebHostBuilder.

Applies to

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Enables the 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

Parameters

configureOptions
Action<TestServerOptions>

Configures test server options

Returns

IWebHostBuilder

The IWebHostBuilder.

Applies to