2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Messaging / MethodCallMessageWrapper.cs
index 8702914c6cff54e51d5a9d1ef34e484be01b3734..9474c038a893244d29c78b897f38d4f28d59a1f4 100644 (file)
@@ -101,7 +101,11 @@ namespace System.Runtime.Remoting.Messaging {
 
                public virtual string Uri {
                        get { return ((IMethodCallMessage)WrappedMessage).Uri; }
-                       set { Properties["__Uri"] = value; }
+                       set {
+                               IInternalMessage im = WrappedMessage as IInternalMessage;
+                               if (im != null) im.Uri = value;
+                               else Properties["__Uri"] = value; 
+                       }
                }
 
                public virtual object GetArg (int argNum)