Method
HttpServerHostContextBuilder.UseListeningPort
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 #
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 #
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.