I’ve got a modular application that instantiates things in separate AppDomains and communicates with them over WCF pipes. I don’t want anyone outside of my process to be able to connect to these pipes.
Suggestions?
<edit>I don’t know much about remoting — would it be a terrible idea to write a transport that uses remoting under the hood?</edit>
Sorry, I might be late… but better late than never 🙂
What you could do is sharing an object between your AppDomains…
For example create a random GUID in the first one and send it to the second one (serialization…).
then, if both AppDomains know this auth token, you may do something like this :
And then you just need to add your endpoint behaviour to your endpoint on both sides :
client :
server :
Well… this may be done in config, but I’ll let you dig 🙂
Hope this helps.