Share via


KestrelServerOptionsSystemdExtensions.UseSystemd 方法

定義

多載

UseSystemd(KestrelServerOptions)

如果可用,請開啟檔案描述項 (從 systemd 通訊端型啟用邏輯初始化SD_LISTEN_FDS_START) 初始化。

UseSystemd(KestrelServerOptions, Action<ListenOptions>)

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

UseSystemd(KestrelServerOptions)

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

如果可用,請開啟檔案描述項 (從 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);
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

參數

傳回

KestrelServerOptions

適用於

UseSystemd(KestrelServerOptions, Action<ListenOptions>)

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

如果可用,請開啟檔案描述項 (從 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);
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

參數

configure
Action<ListenOptions>

傳回

KestrelServerOptions

適用於