G
galmok
Is it possible to subscribe to events loaded in a separate/secondary appdomain?
I have a working setup where I can call methods in assemblies loaded in a secondary appdomain and I can unload the secondary appdomain without problems, but when I try to subscribe to an event I have problems.
Basically what happens is that the secondary appdomain loads a new copy of the primary appdomain and fires the event into the second copy of the primary appdomain. This is of course not useful.
An actual code example is shown here (I judge it as too big for mail and it is better set up on the web):
http://stackoverflow.com/questions/22377654/subscribing-to-event-in-loaded-appdomain
Any pointers?
I have a working setup where I can call methods in assemblies loaded in a secondary appdomain and I can unload the secondary appdomain without problems, but when I try to subscribe to an event I have problems.
Basically what happens is that the secondary appdomain loads a new copy of the primary appdomain and fires the event into the second copy of the primary appdomain. This is of course not useful.
An actual code example is shown here (I judge it as too big for mail and it is better set up on the web):
http://stackoverflow.com/questions/22377654/subscribing-to-event-in-loaded-appdomain
Any pointers?