Sisk

Method

HttpServerHostContextBuilder.UseListeningPort

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

UseListeningPort(ushort) #

Sets the main ListeningPort of this host builder.

C#
public HttpServerHostContextBuilder UseListeningPort(ushort port)

Parameters #

port ushort

The port the server will listen on.

Returns #

HttpServerHostContextBuilder

UseListeningPort(string) #

Sets the main ListeningPort of this host builder.

C#
public HttpServerHostContextBuilder UseListeningPort(string uri)

Parameters #

uri string

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

Returns #

HttpServerHostContextBuilder

UseListeningPort(ListeningPort) #

Sets the main ListeningPort of this host builder.

C#
public HttpServerHostContextBuilder UseListeningPort(ListeningPort listeningPort)

Parameters #

listeningPort ListeningPort

The ListeningPort object which the HTTP server will listen to.

Returns #

HttpServerHostContextBuilder

Type to search the documentation and the API reference.