lluis at ideary.com
Wed Feb 11 08:08:34 EST 2004
I'm not sure to understand what are you trying to do, but you can get
the channel url for an object using the method GetUrlsForUri().
Channel.Parse() returns null if the provided url is not valid for the
channel. Maybe our Parse implementation is stricter than MS.NET one.
What's the result of ToUrl, and for which method does it fail?
On ds, 2004-02-07 at 00:21, Urs Muff wrote:
> Hi Lluis,
> I have some issues with the TcpChannel: the following function works
> fine on .Net:
> public static string GetChannelUri(RemotingProtocol
> IChannelReceiver channel =
> string objectUri;
> return channel != null ?
> channel.Parse(ToUrl(protocol,new System.IO.MemoryStream()),out
> objectUri) : null;
> The GetChannel function will return the right channel object depending
> on protocol (like Tcp, Iiop, Http, ...) and I would like to return the
> channel Uri so that I can build a complete Uri to use in
> It seems to return null instead of the channel Uri.
> How am I supposed to get the channel Uri in mono?
> Kindest regards,
> - Urs C. Muff
> Software Architect - Research Lab, Quark EIF
> Quark Inc.
> UMuff at Quark.Com - X6360
> +1 (303) 894 3360
> CONFIDENTIALITY NOTICE
> This e-mail transmission and any documents, files, or previous e-mail
> messages appended or attached to it, may contain information that is
> confidential or legally privileged. If you are not the intended
> recipient, or a person responsible for delivering it to the intended
> recipient, you are hereby notified that you must not read this
> transmission and that any disclosure, copying, printing, distribution,
> or use of the information contained or attached to this transmission
> is STRICTLY PROHIBITED. If you have received this transmission in
> error, please immediately notify the sender by telephone +1 (303)
> 894-3360 or return e-mail message umuff at quark.com and delete the
> original transmission, its attachments, and any copies without reading
> or saving in any manner. Thank you.
More information about the Mono-devel-list