Share via


KestrelServer Classe

Définition

Serveur 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
Héritage
KestrelServer
Implémente

Constructeurs

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

Initialise une nouvelle instance de KestrelServer.

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Serveur Kestrel.

Propriétés

Features

Collection de fonctionnalités HTTP du serveur.

Options

Obtient KestrelServerOptions.

Méthodes

Dispose()

Serveur Kestrel.

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

Démarrez le serveur avec une application.

StopAsync(CancellationToken)

Arrêtez le traitement des demandes et arrêtez le serveur, correctement si possible.

S’applique à