• Thread starter Thread starter Doctor Prime
  • Start date Start date
D

Doctor Prime

I have a class library for accessing and saving data to a Database. I
only ever want one instance of it in memory at any one time. I would
like to create a Service for it like the ASP.Net State Service so that I
can have many application that use the servic.

Can anyone help me

Thanks.
 
forgive me, but why?
That's pretty inefficient.

In general, you can create a component that others can use by using Remoting
with a Singleton.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top