2006-11-22 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Wed, 22 Nov 2006 01:16:34 +0000 (01:16 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 22 Nov 2006 01:16:34 +0000 (01:16 -0000)
* ChannelServices.cs: Then creating a client sink chain by calling
  CreateMessageSink, provide a null URL if there is channel data.
  Needed because some third party channels check for a null URL before
  looking into the channel data.

svn path=/trunk/mcs/; revision=68314

mcs/class/corlib/System.Runtime.Remoting.Channels/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Channels/ChannelServices.cs

index 18e9e2ff16223814388e478afd42e681c5649f51..ddf0d99b3f066b5c6e611718fd6fb24421ebc1e5 100644 (file)
@@ -1,3 +1,10 @@
+2006-11-22  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * ChannelServices.cs: Then creating a client sink chain by calling
+         CreateMessageSink, provide a null URL if there is channel data.
+         Needed because some third party channels check for a null URL before
+         looking into the channel data.
+
 2005-11-05  Robert Jordan  <robertj@gmx.net>
 
        * ISecurableChannel.cs: Added.
index 07eb60378124835464ba75c6ce9fd4c8e05d023a..9b3aed8631be1e037d8b07dd17f66eb458992f87 100644 (file)
@@ -132,7 +132,9 @@ namespace System.Runtime.Remoting.Channels
                        }
                        else {
                                foreach (object data in channelDataArray) {
-                                       IMessageSink sink = sender.CreateMessageSink (url, data, out objectUri);
+                                       // Don't provide the url in this case, since some channels won't
+                                       // check the channelData parameter if the url is not null.
+                                       IMessageSink sink = sender.CreateMessageSink (null, data, out objectUri);
                                        if (sink != null) return sink;          
                                }
                        }