Struct ListeningPort
Namespace: Sisk.Core.Http
Assembly: Sisk.Core.dll
Provides a structure to contain a listener port for an ListeningHost instance.
public readonly struct ListeningPort : IEquatable<ListeningPort>, IParsable<ListeningPort>
Implements
IEquatable<ListeningPort>, IParsable<ListeningPort>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
A listener port represents an access point on the HTTP server. It consists of an indicator that it should use a secure connection (HTTPS), its hostname and port.
It must start with https:// or http://, and must terminate with an /.
It is represented by the syntax:
     [http|https]://[hostname]:[port]/
Examples:
http://localhost:80/
https://subdomain.domain.net:443/
http://182.32.112.223:5251/Constructors
Creates an new ListeningPort instance with default parameters.
Creates an new ListeningPort instance with the specified port at the loopback host.
Creates an new ListeningPort instance with the specified port and secure context at the loopback host.
ListeningPort(bool, string, ushort)
Creates an new ListeningPort instance with the specified port, secure context and hostname.
ListeningPort(bool, string, ushort, string)
Creates an new ListeningPort instance with the specified port, secure context, hostname and path.
Creates an new ListeningPort instance with the specified URI.
Properties
Gets the DNS hostname pattern where this listening port will refer.
Gets an boolean indicating if this listening port has an non-rooted path.
Gets where this listening port prefix is listening to.
Gets the port where this listening port will refer.
Gets whether the server should listen to this port securely (SSL).
Methods
Determines if another object is equals to this class instance.
Determines if this ListeningPort is equals to another ListeningPort.
Gets the hash code for this listening port.
Gets an ListeningPort object with an random insecure port at the default loopback address.
Parses a string into a ListeningPort.
Parse(string, IFormatProvider?)
Parses a string into a ListeningPort.
Gets an string representation of this ListeningPort.
Gets an string representation of this ListeningPort.
TryParse(string?, IFormatProvider?, out ListeningPort)
Tries to parse a string into a ListeningPort.
 English
                                    English
                                 Русский
                                    Русский
                                 Português
                                    Português
                                 Español
                                    Español
                                 Deutsch
                                    Deutsch
                                 中文 (简体)
                                    中文 (简体)
                                 日本語
                                    日本語