Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
KestrelConfigurationLoader Class
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.
Configuration loader for Kestrel.
public ref class KestrelConfigurationLoader
public class KestrelConfigurationLoader
type KestrelConfigurationLoader = class
Public Class KestrelConfigurationLoader
- Inheritance
-
KestrelConfigurationLoader
Properties
| Name | Description |
|---|---|
| Configuration |
Gets the application IConfiguration. |
| Options |
Gets the KestrelServerOptions. |
Methods
| Name | Description |
|---|---|
| AnyIPEndpoint(Int32, Action<ListenOptions>) |
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported. |
| AnyIPEndpoint(Int32) |
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported. |
| Endpoint(IPAddress, Int32, Action<ListenOptions>) |
Bind to given IP address and port. |
| Endpoint(IPAddress, Int32) |
Bind to given IP address and port. |
| Endpoint(IPEndPoint, Action<ListenOptions>) |
Bind to given IP address and port. |
| Endpoint(IPEndPoint) |
Bind to given IP endpoint. |
| Endpoint(String, Action<EndpointConfiguration>) |
Specifies a configuration Action to run when an endpoint with the given name is loaded from configuration. |
| HandleEndpoint(UInt64, Action<ListenOptions>) |
Open a socket file descriptor. |
| HandleEndpoint(UInt64) |
Open a socket file descriptor. |
| Load() |
Loads the configuration. Does nothing if it has previously been invoked (including implicitly). |
| LocalhostEndpoint(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. |
| LocalhostEndpoint(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. |
| NamedPipeEndpoint(String, Action<ListenOptions>) |
Bind to given named pipe. |
| NamedPipeEndpoint(String) |
Bind to given named pipe. |
| UnixSocketEndpoint(String, Action<ListenOptions>) |
Bind to given Unix domain socket path. |
| UnixSocketEndpoint(String) |
Bind to given Unix domain socket path. |
Applies to
Feedback
Was this page helpful?
