Share object between two processes in C#
-
25-06-2021 - |
Question
I'm looking for a way to share object between two processes. First process should create the object and the second should only copy it without making any change in the original.
Does anyone have an idea how to do that?
La solution
You don't need shared memory : the first process can expose a WCF (or .NET Remoting) service, and the second process will be able to call it. Make sure your object is serializable.
Autres conseils
in .net2.0 or lower you can not use wcf, but you can use some library like wcf, for example ICE Framework, you can download and read about it, on below link ICe Framewrok
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow