Sharing an object in Assembly ?
-
Hi , I have question about .NET assemblies , say I have a Assembly 'X' and that conatins class 'xx' and my two different seperate applications uses this assembly , say Appl'A' and App'B' . Then is it possible that I could share the object of class 'xx' in two applications ? Like App'A' initiate object of class 'xx' and later on when App'B' comes, somehow I could tell that application that object of class 'xx' is already created and use that same object which App'A' has created. Is it possible to do ? I will really apprecaite if you could help me out here Thanks, ZINK ZINK
-
Hi , I have question about .NET assemblies , say I have a Assembly 'X' and that conatins class 'xx' and my two different seperate applications uses this assembly , say Appl'A' and App'B' . Then is it possible that I could share the object of class 'xx' in two applications ? Like App'A' initiate object of class 'xx' and later on when App'B' comes, somehow I could tell that application that object of class 'xx' is already created and use that same object which App'A' has created. Is it possible to do ? I will really apprecaite if you could help me out here Thanks, ZINK ZINK
You can accomplish this using .NET remoting: if AppA created the object, it would publish the object using .NET remoting's
RemotingServices.Marshal(...)
method. Then, AppB can connect to this same object usingRemotingServices.Connect(...)
.Tech, life, family, faith: Give me a visit. I'm currently blogging about: A Torah-observer's answers to Christianity The apostle Paul, modernly speaking: Epistles of Paul Judah Himango