Method UseListeningPort
UseListeningPort(ushort)
Sets the main ListeningPort of this host builder.
public HttpServerHostContextBuilder UseListeningPort(ushort port)
Parameters
port
ushortThe port the server will listen on.
Returns
UseListeningPort(string)
Sets the main ListeningPort of this host builder.
public HttpServerHostContextBuilder UseListeningPort(string uri)
Parameters
uri
stringThe 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
ListeningPortThe ListeningPort object which the HTTP server will listen to.