|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
shared object in GAC across processesIs it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes? If so, how? If not, how can I have a shared .NET object that can used by different processes? Thanks. Amil Hi Amil,
The GAC does not host objects or running processes. The GAC is simply a repository for registered assemblies on the system. Global Assembly Cache (GAC) on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconglobalassemblycache.asp To have a static property that is available to multiple processes you'll have to create an .exe to host the property. To access the property from other processes you can use Remoting. ..NET Framework Remoting Overview on MSDN: http://msdn2.microsoft.com/en-us/library/kwdt6w2k.aspx You might prefer a Windows Service over the standard Windows executable for several reasons that you can read about here on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboricreatingconfiguringwindowsserviceapplications.asp -- Show quoteDave Sexton "Amil Hanish" <amilhan***@hotmail.com> wrote in message news:O3KpgY34GHA.1196@TK2MSFTNGP02.phx.gbl... > Is it possible, using static properties, to have a shared object in the GAC that can be accessed by differnet processes? If so, > how? If not, how can I have a shared .NET object that can used by different processes? > > Thanks. > > Amil > |
|||||||||||||||||||||||