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.
|
HttpListnerwill accept any requests on this port, even those that someone else has already received. I do not understand, why do youHttpSelfHostingConfigurationsuchHttpSelfHostingConfiguration? - UmedHttpSelfHostConfiguration, if the argument comes to mehttp://+:8080? - CRRRRRRRRASH