Remote server: How to read out properties of the IMessage.Propertiesdictionary

  • Thread starter Thread starter Martin Horst
  • Start date Start date
M

Martin Horst

Hi,

I wrote my own client proxy class (derived from the RealProxy class),
where I add some special informations to the IMessage.Properties
dictionary. My problem is now, how do I read out these informations on
the server. I'm not sure if I have to implement my own message sink (I'm
trying to avoid that). Is there a better way to get theses informations.

Thanks in advance
Martin
 
Martin,

You would have to encode the headers on the channel when you are
transporting messages. Frankly, Remoting is NOT the place to do be doing
this kind of thing. The extensibility points simply are not there.

You are better off using WCF and then just attaching headers to your
request with a behavior that is attached to the endpoint/operation/etc, etc.
 
Back
Top