![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to create a system that will execute a method (in the host environment) on an object passed to it via remoting. The object should be created on the client side, passed MBV style to the host where the host will execute the function defined in the interface. The code below probably shows what I'm trying to do much better. As you can imagine, it doesn't work; the exception thrown is shown under the offending line of the client code. |
|
Two questions: 1) How can I pass the objects that implement ICommandExecutable to the host by value so that they run in the host's App Domain? 2) Is there a better way of accomplishing what I'm trying to do? Some requirements of the problem are: -- There could potentially be hundred's of "hosts" with the "client" creating and pushing out commands for each of them to execute. -- The commands may change frequently so the hosts can't know the details of all possible commands and I cannot update or change the host's code each time I add, edit, or remove executable commands. Editing and changing the client is acceptable. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |