KestrelServerOptions.Listen Method

Definition

Overloads

Listen(IPEndPoint)

Bind to given IP endpoint.

Listen(IPAddress, Int32)

Bind to given IP address and port.

Listen(IPEndPoint, Action<ListenOptions>)

Bind to given IP address and port. The callback configures endpoint-specific settings.

Listen(IPAddress, Int32, Action<ListenOptions>)

Bind to given IP address and port. The callback configures endpoint-specific settings.

Listen(IPEndPoint)

Bind to given IP endpoint.

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)

Parameters

endPoint
IPEndPoint

Listen(IPAddress, Int32)

Bind to given IP address and port.

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)

Parameters

address
IPAddress
port
Int32

Listen(IPEndPoint, Action<ListenOptions>)

Bind to given IP address and port. The callback configures endpoint-specific settings.

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))

Parameters

endPoint
IPEndPoint
configure
Action<ListenOptions>

Listen(IPAddress, Int32, Action<ListenOptions>)

Bind to given IP address and port. The callback configures endpoint-specific settings.

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))

Parameters

address
IPAddress
port
Int32
configure
Action<ListenOptions>

Applies to