Constructor ListeningPort
ListeningPort()
Creates an new ListeningPort instance with default parameters.
public ListeningPort()
ListeningPort(ushort)
Creates an new ListeningPort instance with the specified port at the loopback host.
public ListeningPort(ushort port)
Parameters
port
ushortThe port the server will listen on. If this port is the default HTTPS port (443), the class will have the property Secure to true.
ListeningPort(ushort, bool)
Creates an new ListeningPort instance with the specified port and secure context at the loopback host.
public ListeningPort(ushort port, bool secure)
Parameters
port
ushortThe port the server will listen on.
secure
boolIndicates whether the server should listen to this port securely (SSL).
ListeningPort(bool, string, ushort)
Creates an new ListeningPort instance with the specified port, secure context and hostname.
public ListeningPort(bool secure, string hostname, ushort port)
Parameters
secure
boolIndicates whether the server should listen to this port securely (SSL).
hostname
stringThe hostname DNS pattern the server will listen to.
port
ushortThe port the server will listen on.
ListeningPort(string)
Creates an new ListeningPort instance with the specified URI.
public ListeningPort(string uri)
Parameters
uri
stringThe URI component that will be parsed to the listening port format.