As can share data between multiple applications in memory

Posted by Ricardor2708 under C# on 12/5/2012 | Points: 10 | Views : 1227 | Status : [Member] | Replies : 4
I need to know if you can share data in memory across multiple applications using C #, but not using FileMapping.




Responses

Posted by: Pavanandey on: 12/6/2012 [Member] Bronze | Points: 25

Up
0
Down
you can use Application State for storing date and that can be accessed across all the user

Thanks
Pavan Kumar
Mark Answer if this fits the need

Ricardor2708, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ricardor2708 on: 12/6/2012 [Member] Starter | Points: 25

Up
0
Down
Hi thanks for replying,

I really need to know is how to expose a layer of memory data on data tables that can be updated from time to time and who are available for consultation in memory for faster access and query the database to each time.

Ricardor2708, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 12/7/2012 [Member] Bronze | Points: 25

Up
0
Down
you can also use cache and set the time of expiration, once it is expired you can update the datatable.

System.Data.DataTable dt = new System.Data.DataTable;
Cache.Insert("Datatable", dt, null,DateTime.Now.AddDays(1), TimeSpan.FromDays(1));

Thanks
Pavan Kumar
Mark Answer if this fits the need

Ricardor2708, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 12/11/2012 [Member] Starter | Points: 25

Up
0
Down
Use Session. If these projects are in different virtual directories which runs as different servers, it is not possible directly share the session in different server process.To share session in different application, you should use a state server.Maintain application state in global.asax files.

Thanks & Regadrs

Ricardor2708, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response