KestrelServer Class

Definition

Kestrel server.

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

Constructors

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

Initializes a new instance of KestrelServer.

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Properties

Features

A collection of HTTP features of the server.

Options

Gets the KestrelServerOptions.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

StartAsync<TContext>(IHttpApplication<TContext>, CancellationToken)

Start the server with an application.

StopAsync(CancellationToken)

Stop processing requests and shut down the server, gracefully if possible.

Applies to