Sisk

Constructor

ListeningPort constructor

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

ListeningPort() #

Creates an new ListeningPort instance with default parameters.

C#
public ListeningPort()

ListeningPort(ushort) #

Creates an new ListeningPort instance with the specified port at the loopback host.

C#
public ListeningPort(ushort port)

Parameters #

port ushort

The 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.

C#
public ListeningPort(ushort port, bool secure)

Parameters #

port ushort

The port the server will listen on.

secure bool

Indicates 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.

C#
public ListeningPort(bool secure, string hostname, ushort port)

Parameters #

secure bool

Indicates whether the server should listen to this port securely (SSL).

hostname string

The hostname DNS pattern the server will listen to.

port ushort

The 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.

C#
public ListeningPort(bool secure, string hostname, ushort port, string path)

Parameters #

secure bool

Indicates whether the server should listen to this port securely (SSL).

hostname string

The hostname DNS pattern the server will listen to.

port ushort

The port the server will listen on.

path string

The prefix path.

ListeningPort(string) #

Creates an new ListeningPort instance with the specified URI.

C#
public ListeningPort(string uri)

Parameters #

uri string

The URI component that will be parsed to the listening port format.

Type to search the documentation and the API reference.