Bagikan melalui


KestrelServer Kelas

Definisi

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
Warisan
KestrelServer
Penerapan

Konstruktor

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

Menginisialisasi instans baru .KestrelServer

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Server Kestrel.

Properti

Features

Kumpulan fitur HTTP server.

Options

KestrelServerOptionsMendapatkan .

Metode

Dispose()

Server Kestrel.

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

Mulai server dengan aplikasi.

StopAsync(CancellationToken)

Hentikan pemrosesan permintaan dan matikan server, dengan anggun jika memungkinkan.

Berlaku untuk