TestServer TestServer TestServer TestServer Class

Definition

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

Constructors

TestServer(IWebHostBuilder) TestServer(IWebHostBuilder) TestServer(IWebHostBuilder) TestServer(IWebHostBuilder)

For use with IWebHostBuilder.

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

For use with IWebHostBuilder.

Properties

BaseAddress BaseAddress BaseAddress BaseAddress
Features Features Features Features
Host Host Host Host

Methods

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

Begins constructing a request message for submission.

CreateWebSocketClient() CreateWebSocketClient() CreateWebSocketClient() CreateWebSocketClient()
Dispose() Dispose() Dispose() Dispose()
SendAsync(Action<HttpContext>, CancellationToken) 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.Features
IServer.Start<TContext>(IHttpApplication<TContext>) 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.StartAsync<TContext>(IHttpApplication<TContext>, CancellationToken)
IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken)

Applies to