Share via


KestrelServer Classe

Definizione

Server Kestrel.

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
Ereditarietà
KestrelServer
Implementazioni

Costruttori

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

Inizializza una nuova istanza di KestrelServer.

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Server Kestrel.

Proprietà

Features

Raccolta di funzionalità HTTP del server.

Options

Ottiene l'oggetto KestrelServerOptions.

Metodi

Dispose()

Server Kestrel.

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

Avviare il server con un'applicazione.

StopAsync(CancellationToken)

Arrestare le richieste di elaborazione e arrestare il server, se possibile.

Si applica a