KestrelServerOptionsSystemdExtensions.UseSystemd 方法

定義

多載

UseSystemd(KestrelServerOptions)

如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。

UseSystemd(KestrelServerOptions, Action<ListenOptions>)

如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。 指定回呼以設定端點特定的設定。

UseSystemd(KestrelServerOptions)

來源:
KestrelServerOptionsSystemdExtensions.cs
來源:
KestrelServerOptionsSystemdExtensions.cs
來源:
KestrelServerOptionsSystemdExtensions.cs

如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 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>)

來源:
KestrelServerOptionsSystemdExtensions.cs
來源:
KestrelServerOptionsSystemdExtensions.cs
來源:
KestrelServerOptionsSystemdExtensions.cs

如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 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