根据我发现的一个例子,http://weblog.west-wind.com/posts/2013/Sep/04/SelfHosting-SignalR-in-a-Windows-Service,我在Windows中实现了一个SignalR主机服务器服务.
一切正常,但如果我尝试:
SignalR = WebApp.Start("http://*:8080/");
我得到一个未处理的类型`异常
'System.UriFormatException'` occurred in System.dll Additional information: Invalid URI: The hostname could not be parsed.
如果我使用,它工作正常
SignalR = WebApp.Start("http://localhost:8080/");
可能是一个愚蠢的假设,但基于我从中得到的文章,我假设*:8080语法可行.我的问题是,如果我错过了某些内容或文章不正确,这种格式不起作用?