KestrelConfigurationLoader.AnyIPEndpoint 方法

定义

重载

AnyIPEndpoint(Int32)

使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。

AnyIPEndpoint(Int32, Action<ListenOptions>)

使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。

AnyIPEndpoint(Int32)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ AnyIPEndpoint(int port);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint (int port);
member this.AnyIPEndpoint : int -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function AnyIPEndpoint (port As Integer) As KestrelConfigurationLoader

参数

port
Int32

返回

适用于

AnyIPEndpoint(Int32, Action<ListenOptions>)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ AnyIPEndpoint(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint (int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.AnyIPEndpoint : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function AnyIPEndpoint (port As Integer, configure As Action(Of ListenOptions)) As KestrelConfigurationLoader

参数

port
Int32
configure
Action<ListenOptions>

返回

适用于