اقرأ باللغة الإنجليزية

مشاركة عبر


KestrelServer Class

Definition

Kestrel server.

C#
public class KestrelServer : IDisposable, Microsoft.AspNetCore.Hosting.Server.IServer
Inheritance
KestrelServer
Implements

Constructors

Properties

Features

A collection of HTTP features of the server.

Options

Gets the KestrelServerOptions.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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

Start the server with an application.

StopAsync(CancellationToken)

Stop processing requests and shut down the server, gracefully if possible.

Applies to

منتج الإصدارات
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0