Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a file import page which gives me a HttpPostedFile. I'll be performing some operations on the file at a later stage but I figured that the Session cache would be a good place to keep it for now. I want to access the file from my SignalR ticker, but I can't find the Session cache!?! Is it available in the 'Context'?

Question: How do I access the Session cache from my SignalR ticker?
(Extra points): Is there a better way?

Thanks ^_^
Andy



PS: I recently realized that in the 7 years of writing .Net websites, I have never actually written any ASP code o_O (control 'Registers' notwithstanding)
Posted
Comments
Kornfeld Eliyahu Peter 13-Jan-16 4:59am    
Look on...You can not use SignalR with Session...
(That's not true of course, as you can enable it, but that very moment you are not really using SignalR. There is a basic conflict between the duplex-way of SignalR and the way ASP serialize state)
Andy Lanng 13-Jan-16 5:00am    
is there an alternative I should look into?
Kornfeld Eliyahu Peter 13-Jan-16 5:02am    
To be honest it is not clear to me what do you want to achieve...So I can't tell you...
Andy Lanng 13-Jan-16 5:06am    
fair point
I writing a web interface that takes in an excel file. I parse the file (with a little user input) than add data to a database. The stage I'm at right now is taking in the excel file (reading it into memory) and showing the details of the file in the UI.
Kornfeld Eliyahu Peter 13-Jan-16 5:15am    
And now you need some more input to process on?
How SignalR involved in all this?

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