How can a remoted .NET object access objects/methods in the hosting app?
-
I have two existing (complex) .NET 3.0 Winform apps A and B that need to exchange information synchronously (using request/response). Both apps are running on the same computer at present, but perhaps over a LAN later. Since I've used .NET Remoting in the past, I figured that's the way to go... So I setup app A to host class X for Remoting, and I setup app B to instantiate class X (on A) and then invoke its methods. Works great, except class X (being hosted on A) can't actually access the hosting app A. For example, it can't invoke A's methods, access its variables, etc. The functional requirement is to have apps A and B exchange information, not simply to allow B to invoke an "isolated" object that's hosted by A, but which can't really interact with app A. I've been searching all day, and so far all I've found is a passing reference that it should be possible for app A "to get a proxy to the remote object". But I don't have a clue how to do that, or what it implies. ANY help would be greatly appreciated! DT
-
I have two existing (complex) .NET 3.0 Winform apps A and B that need to exchange information synchronously (using request/response). Both apps are running on the same computer at present, but perhaps over a LAN later. Since I've used .NET Remoting in the past, I figured that's the way to go... So I setup app A to host class X for Remoting, and I setup app B to instantiate class X (on A) and then invoke its methods. Works great, except class X (being hosted on A) can't actually access the hosting app A. For example, it can't invoke A's methods, access its variables, etc. The functional requirement is to have apps A and B exchange information, not simply to allow B to invoke an "isolated" object that's hosted by A, but which can't really interact with app A. I've been searching all day, and so far all I've found is a passing reference that it should be possible for app A "to get a proxy to the remote object". But I don't have a clue how to do that, or what it implies. ANY help would be greatly appreciated! DT
I was wondering...you could you a message queue for this kind of scenario...which could make the code more simpler...
Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV