KestrelConfigurationLoader.LocalhostEndpoint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LocalhostEndpoint(Int32) |
使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。 |
LocalhostEndpoint(Int32, Action<ListenOptions>) |
使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。 |
LocalhostEndpoint(Int32)
使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。
public:
Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ LocalhostEndpoint(int port);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint (int port);
member this.LocalhostEndpoint : int -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function LocalhostEndpoint (port As Integer) As KestrelConfigurationLoader
參數
- port
- Int32
傳回
適用於
LocalhostEndpoint(Int32, Action<ListenOptions>)
使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。
public:
Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ LocalhostEndpoint(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint (int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.LocalhostEndpoint : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function LocalhostEndpoint (port As Integer, configure As Action(Of ListenOptions)) As KestrelConfigurationLoader
參數
- port
- Int32
- configure
- Action<ListenOptions>