KestrelServer 類別

定義

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
繼承
KestrelServer
實作

建構函式

KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)

初始化 KestrelServer 的新執行個體。

KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)

Kestrel 伺服器。

屬性

Features

伺服器的 HTTP 功能集合。

Options

取得 KestrelServerOptions

方法

Dispose()

Kestrel 伺服器。

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

使用應用程式啟動伺服器。

StopAsync(CancellationToken)

請盡可能停止處理要求並關閉伺服器。

適用於