matei....@gmail.com
unread,Aug 17, 2015, 8:32:18 AM8/17/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Autofac
Hello!
I have a web application where I use Autofac for most of my dependencies, so I decided to install Autofac.Integration.SignalR in order to resolve my dependencies inside my hubs.
Now, because it is a WebAPI application, I have an Owin Startup class where I configure the middleware that I need. (I also installed Integration.Owin).
Now, in the official documentation it states the following: "A common error in OWIN integration is use of the GlobalHost. In OWIN you create the configuration from scratch. You should not reference GlobalHost anywhere when using the OWIN integration."
How am I supposed to have acces to updating the SignalR clients outside the hub (most of my application needs to do this) if I can't use GlobalHost?
What is considered best practice in this scenario?
Thanks!