[Mono-dev] Question about Remoting and Localendpoint

Robert Jordan robertj at gmx.net
Fri Dec 29 13:33:06 EST 2006


pablosantosluac wrote:
> Hi all (Lluis¿?),
> 
> Is there a way to retrieve a Localendpoint at a remoting application? I 
> mean, you export an object using remoting, then is it possible when a method 
> is invoked inside the object, to retrieve data about the remoting channel or 
> even better, the localendpoint? 

This is not possible. Neither MS.NET's nor Mono's transport channels
provide this information to the upper sinks.


You could create a custom ServerChannelSink and create as many
channels as interfaces, while using the proper channel properties
(for TcpChannel: bindTo="ip-address").

When processing messages, the custom sink should access
the lower sink's channel property and inject it in the CallContext
of the method. In the method itself you can access this data
using CallContext.GetData.

Robert




More information about the Mono-devel-list mailing list