If definining several contracts, wouldn't it be necessary to create several
channels, one for each interface? In that case, wouldn't each interface (and
therefore channel) need to connect to a different endpoint on the server?
Using Net.Tcp, wouldn't that mean that the server would have to have
different ports for each interface? This would be inefficient also because a
separate connection would have to be made for each interface.
Or is there another way?
"Arkady Frenkel" <firstname.lastname@example.org> wrote in message
> To create proxy of second interface WCF demand that will expose metadata
> for serialization of parameters and OTOH service itself have to listen for
> incoming calls. Both conditions are not implemented in the scenario you
> wrote, so IMHO that can't be done.
> On the contrary , you can define few service contracts in your WCF service
> and call their methods from the the same client
> "Mike Scott" <email@example.com> wrote in message
>> In Indigo, is it possible to return an instance of a type that is
>> marshalled by reference so that the returned object is a proxy and
>> calling methods on this object calls methods on the server?
>> Something like:
>> public interface IMyService
>> IMyOtherService GetOtherService();
>> public interface IMyOtherService
>> string SayHello();
>> ChannelFactory<IMyService> factory = new ChannelFactory<IMyService>(
>> ... );
>> IMyService myService = factory.CreateChannel();
>> // following line should create a proxy for an instance of
>> IMyOtherService on the server
>> IMyOtherService otherService = myService.GetOtherService();
>> // following should call the SayHello method on server object instance,
>> i.e. marshalled by ref
>> string s = otherService.SayHello();
>> Is this possible? Or does WCF only support passing of data objects by