KestrelServerOptionsSystemdExtensions.UseSystemd 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
UseSystemd(KestrelServerOptions) |
如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。 |
UseSystemd(KestrelServerOptions, Action<ListenOptions>) |
如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。 指定回呼以設定端點特定的設定。 |
如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^ UseSystemd(Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^ options);
C#
public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd (this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options);
static member UseSystemd : Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions
<Extension()>
Public Function UseSystemd (options As KestrelServerOptions) As 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 |
如果可用,請開啟由 systemd 套接字型啟用邏輯初始化的檔案描述元(從 SD_LISTEN_FDS_START 開始)。 指定回呼以設定端點特定的設定。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^ UseSystemd(Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^ options, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
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);
static member UseSystemd : Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions
<Extension()>
Public Function UseSystemd (options As KestrelServerOptions, configure As Action(Of ListenOptions)) As KestrelServerOptions
參數
- options
- KestrelServerOptions
- configure
- Action<ListenOptions>
傳回
適用於
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 |