Table of Contents

Method UseListeningPort

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

UseListeningPort(ushort)

Sets the main ListeningPort of this host builder.

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.

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.

public HttpServerHostContextBuilder UseListeningPort(ListeningPort listeningPort)

Parameters

listeningPort ListeningPort

The ListeningPort object which the HTTP server will listen to.

Returns

HttpServerHostContextBuilder