Last post Mar 07, 2014 10:11 AM by andymarksonline
Mar 06, 2014 08:16 PM|Uncle Lai|LINK
Currently, I have a Hub, which accept clients connections, when a conneciton is established (OnConnected), I need to establish a persistent connection object to remote server (third party dependency), and following client request to invoke a Hub method,
the Hub method would forward the request to the third party dependency, and send back results to the client.
So where I can save the object of the persistent connection object?? because, everytime the Hub method is invoked, the my Hub object would be instanciated again, so using private fields in my Hub class would not be a solution.
Mar 07, 2014 10:11 AM|andymarksonline|LINK
It depends how you are communicating with the third party, though you should be able to use a static list of connection IDs anad match up the response with the correction connection ID that way.