Sorry jezell i don't understand.
Yes, I can use ChannelFactory on the client to create a proxy server for IFactory , since this singleton object was "published" by the server through a URI on ServiceHost .
But my IFoo instances on the server are not associated with any ServiceHost ; I just want to get them back by calling my IFactory on the client, and let WCF make a call to the IFactory server, which will provide some IFoo , which will then be redirected back to the client and wrapped in a dynamically generated proxy. I just want to write factory.GetFoo (); on my client ...
At the same time, Brian pointed me to a very interesting document, which I missed from MSDN, which explains how to control the setting of the .NET Remoting interface using sessions and EndPointAddress10 and ... as you wrote, ChannelFactory for receiving proxies on the side customer.
So now I know how to replicate my remote .NET code, but at a relatively high cost. The code complexity associated with WCF is slightly higher than with a simple old .NET remote solution.
Pierre arnaud
source share