Using Unity IoC to register and resolve SignalR hubs
I think I'm missing something very simple and maybe just need a new set of eyes. I have an ASP.NET MVC application. In that app, I am using Unity for my IoC to handle dependency injection. Each of my repositories need to have a database factory injected into it and each database factory needs to have a principal injected into it. So far, I've been utilizing the PerRequestLifetimeManager to register these. //Repositories container.RegisterType<ChatMessageRepository>(new PerRequestLifetimeManager()); container.RegisterType<SignalRConnectionRepository>(new PerRequestLifetimeManager()); //Context