Click here to Skip to main content
15,888,026 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi we are developing a web application. In which we are storing values on session for state maintenance. It has users right and window's service connection object etc. Now we are need to update the client from server side. I used DuplexChannelFactory for two way communication with windows service and web server also I used SignalR for two way communication from web server and browser. I used same hub object to create DuplexChannelFactory. It works fine for me. But now my problem is I need to store that channel into session for state maintenance for both window and web server. But i am not able to get the hub object in the web server. So please help me to get the hub object to create the Duplex channel and how can I store this object into session? want your valuable suggestions...
Posted

1 solution

Hi Selvakumar Gurusamy,
Instead of using session you can use database where you can store Context.ConnectionId for maintaing one to one mapping between client and server along with your data.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900