Udostępnij przez


KestrelServer Klasa

Definicja

Serwer 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
Dziedziczenie
KestrelServer
Implementuje

Konstruktory

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

Inicjuje nowe wystąpienie klasy KestrelServer.

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Serwer Kestrel.

Właściwości

Features

Kolekcja funkcji HTTP serwera.

Options

Pobiera klasę KestrelServerOptions.

Metody

Dispose()

Serwer Kestrel.

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

Uruchom serwer za pomocą aplikacji.

StopAsync(CancellationToken)

Zatrzymaj przetwarzanie żądań i zamknij serwer, bezpiecznie, jeśli to możliwe.

Dotyczy