Home All Groups Group Topic Archive Search About

How to configure a formatter to StreamingContext.CrossProcess?

Author
31 Jul 2006 10:58 PM
n.estner
I've got a class that contains lots of binary data (written in
C++/CLI); To get decent serialization performance, I've implemented
ISerializable using shared memory if the StreamingContext.State
property allows it.
Unfortunately, StreamingContext.State appears to be set to
StreamingContext.Other everytime my GetObjectData-method is called
(although both processes are on the same machine), so I have to do an
expensive serialization (coping the data into a byte[]).

Is there a way to tell the binary formatter that it's used locally (I'm
using an IpcChannel, so this would be safe) via my remoting-config
file? Or can I load my remoting-config file and then extract the
BinaryFormatter so I can modify it's Context property?

TIA,

Niki

AddThis Social Bookmark Button