I use Ipcserverchannel class and Ipcclientchannel to do IPC. I try to
read a file to memory using process A and then use IPC to transport
it
to process B. However, IPC use nearly as much time as from a from
disk, which is very surprising ( I expect it to be much much faster).
What could possibly be the problem?
Part of my code:
Server:
IpcServerChannel serverChannel = new
IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);
// Expose an object
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SharedCache),
"myObj", WellKnownObjectMode.Singleton);
Client:
clientChannel = new IpcClientChannel();
ChannelServices.RegisterChannel(clientChannel);
RemotingConfiguration.RegisterWellKnownClientType(typeof(SharedObj),
"ipc://remote/myObj");
ShareObj is the shared remoting object which can reading the file
from
the disk and transport the file to the client process.
Peter Duniho - 08 Aug 2007 05:01 GMT
> [multi-posted article]
Please do not multi-post. If you must post to multiple newsgroups,
please learn to cross-post properly, including all newsgroups in a
single post.
Thank you,
Pete