Setup:
- SignalRServer console app: Microsoft.AspNet.SignalR.SelfHost v2.0.3
- SignalRClient console app: Microsoft.A
The SignalR team pointed me to the solution: By default SignalR uses GlobalHost, which is a singleton resolver. When disposed, it will never come back.
When creating the configuration for the hub, you should pass inn a new dependency resolver:
public class Startup
{
public void Configuration(IAppBuilder app)
{
var hubConfiguration = new HubConfiguration {Resolver = new DefaultDependencyResolver()};
app.MapSignalR(hubConfiguration);
}
}