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
portushortThe 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
portushortThe port the server will listen on.
secureboolIndicates 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
secureboolIndicates whether the server should listen to this port securely (SSL).
hostnamestringThe hostname DNS pattern the server will listen to.
portushortThe port the server will listen on.
ListeningPort(bool, string, ushort, string)
Creates an new ListeningPort instance with the specified port, secure context, hostname and path.
public ListeningPort(bool secure, string hostname, ushort port, string path)
Parameters
secureboolIndicates whether the server should listen to this port securely (SSL).
hostnamestringThe hostname DNS pattern the server will listen to.
portushortThe port the server will listen on.
pathstringThe prefix path.
ListeningPort(string)
Creates an new ListeningPort instance with the specified URI.
public ListeningPort(string uri)
Parameters
uristringThe URI component that will be parsed to the listening port format.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語