KestrelServerOptions.Listen 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>)
绑定到给定的 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>)
绑定到给定的 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)
Listen(EndPoint)
绑定到给定的终结点。
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)
绑定到给定的 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>)
绑定到给定的终结点。 回调配置特定于终结点的设置。
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>
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈