SignalR Static Collection
I read some documentation about using a in memory store for a SignalR app.
I believe you can use a Static Collection to hold your objects you need to process within the hub. Is it possible to have access to this Static collection from outside the hub? If you have other objects within the app who need access to this in memory store what is the best practise?
Best practice is to let the Hub act only as a Hub, no business logic of any kind. Also dont call the hub client methods from your core logic classes, this is highly coupled and is bad practice. Abstract the Hub either with your own code or use a library, I have created this abstraction library that is based on the Event aggregation pattern.
Just make the Static collection public and access it like any other Static collections. The collection will be lost when the app closes so would need to be stored persisted somewhere is needed.