KestrelServerOptionsSystemdExtensions.UseSystemd 方法

定义

重载

UseSystemd(KestrelServerOptions)

打开文件描述符 (从 SD_LISTEN_FDS_START) 由基于套接字的系统激活逻辑初始化(如果可用)。

UseSystemd(KestrelServerOptions, Action<ListenOptions>)

打开文件描述符 (从 SD_LISTEN_FDS_START) 由基于套接字的系统激活逻辑初始化(如果可用)。 指定回调以配置特定于终结点的设置。

UseSystemd(KestrelServerOptions)

Source:
KestrelServerOptionsSystemdExtensions.cs
Source:
KestrelServerOptionsSystemdExtensions.cs
Source:
KestrelServerOptionsSystemdExtensions.cs

打开文件描述符 (从 SD_LISTEN_FDS_START) 由基于套接字的系统激活逻辑初始化(如果可用)。

C#
public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd (this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options);

参数

返回

KestrelServerOptions

适用于

ASP.NET Core 9.0 和其他版本
产品 版本
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

UseSystemd(KestrelServerOptions, Action<ListenOptions>)

Source:
KestrelServerOptionsSystemdExtensions.cs
Source:
KestrelServerOptionsSystemdExtensions.cs
Source:
KestrelServerOptionsSystemdExtensions.cs

打开文件描述符 (从 SD_LISTEN_FDS_START) 由基于套接字的系统激活逻辑初始化(如果可用)。 指定回调以配置特定于终结点的设置。

C#
public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd (this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);

参数

configure
Action<ListenOptions>

返回

KestrelServerOptions

适用于

ASP.NET Core 9.0 和其他版本
产品 版本
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0