Single Dataset object for all processes

  • Thread starter Thread starter Prabhu Shastry
  • Start date Start date
P

Prabhu Shastry

Hello group,
I have a Windows Service and an application (C#). Both processes need access
to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with
..Net remoting, but not able to figure out a way to make this possible. Does
anyone know if it's possible to achieve this?

Thanks,
-Prabhu
 
Prabhu,
Normally what I do is to add the DataSet to a Class Library project, then
reference this Class Library from both the application & the Windows
Service.

Hope this helps
Jay
 
Jay,
Thanks for the reply. This is what I have done, but what I need to have a
single object instance available for both processes. In other words, the
service creates and maintains the dataset object and the application just
uses the very same object. I was thinking of having a singleton class wrap
the dataset in the service but wanted to know if there is a better approach.

-Prabhu

Prabhu,
Normally what I do is to add the DataSet to a Class Library project, then
reference this Class Library from both the application & the Windows
Service.

Hope this helps
Jay
 
Prabhu,
The singleton in .NET remoting sounds like what you want, however I have not
used it...

Hope this helps
Jay
 
Back
Top