TestServer TestServer TestServer Class

Definition

public class TestServer : IDisposable, Microsoft.AspNetCore.Hosting.Server.IServer
type TestServer = class
    interface IServer
    interface IDisposable
Public Class TestServer
Implements IDisposable, IServer
Inheritance
TestServerTestServerTestServer
Implements

Constructors

TestServer(IWebHostBuilder) TestServer(IWebHostBuilder) TestServer(IWebHostBuilder)
TestServer(IWebHostBuilder, IFeatureCollection) TestServer(IWebHostBuilder, IFeatureCollection) TestServer(IWebHostBuilder, IFeatureCollection)

Properties

BaseAddress BaseAddress BaseAddress
Features Features Features
Host Host Host

Methods

CreateClient() CreateClient() CreateClient()
CreateHandler() CreateHandler() CreateHandler()
CreateRequest(String) CreateRequest(String) CreateRequest(String)

Begins constructing a request message for submission.

CreateWebSocketClient() CreateWebSocketClient() CreateWebSocketClient()
Dispose() Dispose() Dispose()
SendAsync(Action<HttpContext>, CancellationToken) SendAsync(Action<HttpContext>, CancellationToken) SendAsync(Action<HttpContext>, CancellationToken)

Creates, configures, sends, and returns a HttpContext. This completes as soon as the response is started.

Explicit Interface Implementations

IServer.Features IServer.Features IServer.Features
IServer.Start<TContext>(IHttpApplication<TContext>) IServer.Start<TContext>(IHttpApplication<TContext>) IServer.Start<TContext>(IHttpApplication<TContext>)
IServer.StartAsync<TContext>(IHttpApplication<TContext>, CancellationToken) IServer.StartAsync<TContext>(IHttpApplication<TContext>, CancellationToken) IServer.StartAsync<TContext>(IHttpApplication<TContext>, CancellationToken)
IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken)

Applies to