[Mono-dev] Question about Remoting and Localendpoint

Robert Jordan robertj at gmx.net
Fri Dec 29 16:25:11 EST 2006


Have a look at the sample I've attached. ChannelInfoSink.cs is injecting
the parameter "ChannelInfo" in the call context.
"ChannelInfo" can be configured in server.exe.config.

The implementation is not complete: it doesn't handle async and
OneWay calls.


pablosantosluac wrote:
> thanks Robert. Ok, I would rather prefered something easier but let's see 
> whether I can make it run...
> It's a pity such information is not available in any other way
> ----- Original Message ----- 
> From: "Robert Jordan" <robertj at gmx.net>
> To: <mono-devel-list at lists.ximian.com>
> Sent: Friday, December 29, 2006 7:33 PM
> Subject: Re: [Mono-dev] Question about Remoting and Localendpoint
> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChannelInfoDemo.zip
Type: application/x-zip-compressed
Size: 3155 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061229/bb37d2cd/attachment.bin 

More information about the Mono-devel-list mailing list