KestrelServerOptions.ListenLocalhost Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ListenLocalhost(Int32) |
Listens on ::1 and 127.0.0.1 with the given port. Requesting a dynamic port by specifying 0 is not supported for this type of endpoint. |
ListenLocalhost(Int32, Action<ListenOptions>) |
Listens on ::1 and 127.0.0.1 with the given port. Requesting a dynamic port by specifying 0 is not supported for this type of endpoint. |
ListenLocalhost(Int32)
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
Listens on ::1 and 127.0.0.1 with the given port. Requesting a dynamic port by specifying 0 is not supported for this type of endpoint.
public:
void ListenLocalhost(int port);
public void ListenLocalhost (int port);
member this.ListenLocalhost : int -> unit
Public Sub ListenLocalhost (port As Integer)
Parameters
- port
- Int32
Applies to
ListenLocalhost(Int32, Action<ListenOptions>)
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
Listens on ::1 and 127.0.0.1 with the given port. Requesting a dynamic port by specifying 0 is not supported for this type of endpoint.
public:
void ListenLocalhost(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void ListenLocalhost (int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.ListenLocalhost : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub ListenLocalhost (port As Integer, configure As Action(Of ListenOptions))
Parameters
- port
- Int32
- configure
- Action<ListenOptions>