Class
ListeningHost
Provides a type to contain the fields needed by an HTTP server virtual host.
public sealed class ListeningHost : IEquatable<ListeningHost>Inheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| ListeningHost() | Creates an new empty ListeningHost instance. |
| ListeningHost(params ListeningPort[]) | Creates an new ListeningHost instance with given array of ListeningPort. |
| ListeningHost(string, Router) | Creates an new ListeningHost instance with given URL. |
Properties #
| Name | Description |
|---|---|
| CanListen | Gets whether this ListeningHost can be listened by it’s host HttpServer. |
| CrossOriginResourceSharingPolicy | Gets or sets the CORS sharing policy object. |
| Label | Gets or sets a label for this Listening Host. |
| Ports | Gets or sets the list of ListeningPort that this host will listen on. |
| Router | Gets or sets the Router for this ListeningHost instance. |
| SslOptions | Gets or sets the SSL options for this ListeningHost. |
Methods #
| Name | Description |
|---|---|
| Equals(object?) | Determines if another object is equals to this class instance. |
| Equals(ListeningHost?) | |
| GetHashCode() | Gets the hash code for this listening host. |