Bind any collection to SignalR with a single call.

This commit is contained in:
kay.one
2013-05-05 17:33:43 -07:00
parent 87a5dc7869
commit a6aba16902
13 changed files with 106 additions and 26 deletions
@@ -23,7 +23,8 @@ namespace NzbDrone.Owin.MiddleWare
{
foreach (var nzbDronePersistentConnection in _persistentConnections)
{
appBuilder.MapConnection("signalr/series", nzbDronePersistentConnection.GetType(), new ConnectionConfiguration { EnableCrossDomain = true });
var url = string.Format("signalr/{0}", nzbDronePersistentConnection.Resource.Trim('/'));
appBuilder.MapConnection(url, nzbDronePersistentConnection.GetType(), new ConnectionConfiguration { EnableCrossDomain = true });
}
}