Share via


KestrelServerOptions.Listen Method

Definition

Overloads

Listen(IPEndPoint, Action<ListenOptions>)

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

Listen(IPAddress, Int32, Action<ListenOptions>)

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

Listen(IPAddress, Int32)

Bind to the given IP address and port.

Listen(EndPoint)

Bind to the given endpoint.

Listen(IPEndPoint)

Bind to the given IP endpoint.

Listen(EndPoint, Action<ListenOptions>)

Bind to the given endpoint. The callback configures endpoint-specific settings.

Listen(IPEndPoint, Action<ListenOptions>)

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

Bind to the 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>

Applies to

Listen(IPAddress, Int32, Action<ListenOptions>)

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

Bind to the 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

Listen(IPAddress, Int32)

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

Bind to the 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

Applies to

Listen(EndPoint)

Source:
KestrelServerOptions.cs

Bind to the given 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)

Parameters

endPoint
EndPoint

Applies to

Listen(IPEndPoint)

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

Bind to the 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

Applies to

Listen(EndPoint, Action<ListenOptions>)

Source:
KestrelServerOptions.cs

Bind to the given endpoint. The callback configures endpoint-specific settings.

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

Parameters

endPoint
EndPoint
configure
Action<ListenOptions>

Applies to