How best to communicate between AppDomains?

前端 未结 6 1875
孤城傲影
孤城傲影 2020-12-07 22:31

I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have

6条回答
  •  长情又很酷
    2020-12-07 23:22

    A cross-domain delegate only allows a void method with zero parameters, and it's probably not what you think it is. It's only barely useful as a simple callback for notification purposes from one appdomain to another, e.g. a method like InitComplete() or something.

    Remoting is the ONLY choice, whether you call it WCF or whatever else, passing serializable types, or using MBRO types (MarshalByRefObjects). It's not as hard as you think.

    -Oisin

提交回复
热议问题