KestrelServer Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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. |