KestrelServerOptions.Listen 方法

定义

重载

Listen(IPEndPoint, Action<ListenOptions>)

绑定到给定的 IP 地址和端口。 回调配置特定于终结点的设置。

Listen(IPAddress, Int32, Action<ListenOptions>)

绑定到给定的 IP 地址和端口。 回调配置特定于终结点的设置。

Listen(IPAddress, Int32)

绑定到给定的 IP 地址和端口。

Listen(EndPoint)

绑定到给定的终结点。

Listen(IPEndPoint)

绑定到给定的 IP 终结点。

Listen(EndPoint, Action<ListenOptions>)

绑定到给定的终结点。 回调配置特定于终结点的设置。

Listen(IPEndPoint, Action<ListenOptions>)

Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs

绑定到给定的 IP 地址和端口。 回调配置特定于终结点的设置。

public:
 void Listen(System::Net::IPEndPoint ^ endPoint, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.IPEndPoint endPoint, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.IPEndPoint * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (endPoint As IPEndPoint, configure As Action(Of ListenOptions))

参数

endPoint
IPEndPoint
configure
Action<ListenOptions>

适用于

Listen(IPAddress, Int32, Action<ListenOptions>)

Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs

绑定到给定的 IP 地址和端口。 回调配置特定于终结点的设置。

public:
 void Listen(System::Net::IPAddress ^ address, int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.IPAddress address, int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.IPAddress * int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (address As IPAddress, port As Integer, configure As Action(Of ListenOptions))

参数

address
IPAddress
port
Int32
configure
Action<ListenOptions>

适用于

Listen(IPAddress, Int32)

Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs

绑定到给定的 IP 地址和端口。

public:
 void Listen(System::Net::IPAddress ^ address, int port);
public void Listen (System.Net.IPAddress address, int port);
member this.Listen : System.Net.IPAddress * int -> unit
Public Sub Listen (address As IPAddress, port As Integer)

参数

address
IPAddress
port
Int32

适用于

Listen(EndPoint)

Source:
KestrelServerOptions.cs

绑定到给定的终结点。

public:
 void Listen(System::Net::EndPoint ^ endPoint);
public void Listen (System.Net.EndPoint endPoint);
member this.Listen : System.Net.EndPoint -> unit
Public Sub Listen (endPoint As EndPoint)

参数

endPoint
EndPoint

适用于

Listen(IPEndPoint)

Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs
Source:
KestrelServerOptions.cs

绑定到给定的 IP 终结点。

public:
 void Listen(System::Net::IPEndPoint ^ endPoint);
public void Listen (System.Net.IPEndPoint endPoint);
member this.Listen : System.Net.IPEndPoint -> unit
Public Sub Listen (endPoint As IPEndPoint)

参数

endPoint
IPEndPoint

适用于

Listen(EndPoint, Action<ListenOptions>)

Source:
KestrelServerOptions.cs

绑定到给定的终结点。 回调配置特定于终结点的设置。

public:
 void Listen(System::Net::EndPoint ^ endPoint, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.EndPoint endPoint, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.EndPoint * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (endPoint As EndPoint, configure As Action(Of ListenOptions))

参数

endPoint
EndPoint
configure
Action<ListenOptions>

适用于