The MapHubs call does this already:

https://github.com/SignalR/SignalR/blob/dev/src/Microsoft.AspNet.SignalR.Owin/OwinExtensions.cs#L80
https://github.com/SignalR/SignalR/blob/dev/src/Microsoft.AspNet.SignalR.Core/Hosting/HostDependencyResolverExtensions.cs#L24