Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

KestrelConfigurationLoader.Endpoint Method

Definition

Namespace:
Microsoft.AspNetCore.Server.Kestrel
Assembly:
Microsoft.AspNetCore.Server.Kestrel.Core.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Server.Kestrel.Core v2.1.0
Package:
Microsoft.AspNetCore.Server.Kestrel.Core v2.2.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8

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

Name Description
Endpoint(IPEndPoint)

Bind to given IP endpoint.

Endpoint(IPAddress, Int32)

Bind to given IP address and port.

Endpoint(IPEndPoint, Action<ListenOptions>)

Bind to given IP address and port.

Endpoint(String, Action<EndpointConfiguration>)

Specifies a configuration Action to run when an endpoint with the given name is loaded from configuration.

Endpoint(IPAddress, Int32, Action<ListenOptions>)

Bind to given IP address and port.

Endpoint(IPEndPoint)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

Bind to given IP endpoint.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Endpoint(System::Net::IPEndPoint ^ endPoint);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPEndPoint endPoint);
member this.Endpoint : System.Net.IPEndPoint -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Endpoint (endPoint As IPEndPoint) As KestrelConfigurationLoader

Parameters

endPoint
IPEndPoint

Returns

Applies to

Endpoint(IPAddress, Int32)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

Bind to given IP address and port.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Endpoint(System::Net::IPAddress ^ address, int port);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPAddress address, int port);
member this.Endpoint : System.Net.IPAddress * int -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Endpoint (address As IPAddress, port As Integer) As KestrelConfigurationLoader

Parameters

address
IPAddress
port
Int32

Returns

Applies to

Endpoint(IPEndPoint, Action<ListenOptions>)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

Bind to given IP address and port.

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

Parameters

endPoint
IPEndPoint
configure
Action<ListenOptions>

Returns

Applies to

Endpoint(String, Action<EndpointConfiguration>)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

Specifies a configuration Action to run when an endpoint with the given name is loaded from configuration.

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Endpoint(System::String ^ name, Action<Microsoft::AspNetCore::Server::Kestrel::EndpointConfiguration ^> ^ configureOptions);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(string name, Action<Microsoft.AspNetCore.Server.Kestrel.EndpointConfiguration> configureOptions);
member this.Endpoint : string * Action<Microsoft.AspNetCore.Server.Kestrel.EndpointConfiguration> -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Endpoint (name As String, configureOptions As Action(Of EndpointConfiguration)) As KestrelConfigurationLoader

Parameters

name
String
configureOptions
Action<EndpointConfiguration>

Returns

Applies to

Endpoint(IPAddress, Int32, Action<ListenOptions>)

Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs
Source:
KestrelConfigurationLoader.cs

Bind to given IP address and port.

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

Parameters

address
IPAddress
port
Int32
configure
Action<ListenOptions>

Returns

Applies to


Feedback

Was this page helpful?