In my scenario, I want to execute a method in a separate AppDomain. How many different ways could I take to achieve this?
Especially, I have the following question:
- Can I load an assembly into AppDomain A and execute its method in AppDomain B?
- It seems I achieve this with AppDomain.DoCallBack Method and CrossAppDomainDelegate. I just cannot figure out how could it make sense to have the assembly and the method in different AppDomains. Is the same assmebly loaded again into the other AppDomain in order to execute the method?