When an HttpListener used, it has the Prefixes property, we can add a line like http://+:8080 and everything will work fine. I want to use the self-host web api, for this you need to write: var config = new HttpSelfHostConfiguration("http://localhost:8080"); , and the line type http://+:8080 it does not accept. The question is, respectively, how to feed him such a string. Well, for everyone, explain what exactly means "+" in this case, although it seems to be clear. Thank you in advance.

  • plus means that HttpListner will accept any requests on this port, even those that someone else has already received. I do not understand, why do you HttpSelfHostingConfiguration such HttpSelfHostingConfiguration ? - Umed
  • one
    @Umed And how else to do the same through HttpSelfHostConfiguration , if the argument comes to me http://+:8080 ? - CRRRRRRRRASH
  • @CRRRRRRRRASH solved the problem? - gek0n

0