2002-07-24 Duncan Mak <duncan@ximian.com>
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Tue, 23 Jul 2002 17:24:51 +0000 (17:24 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Tue, 23 Jul 2002 17:24:51 +0000 (17:24 -0000)
* System.Runtime.Remoting.Activation/UrlAttribute.cs: Add to CVS.

* System.Runtime.Remoting.Activation/IConstructionCallMessage.cs:
This implements IMessage, IMethodCallMessage and IMethodMessage.

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

mcs/class/corlib/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Activation/IConstructionCallMessage.cs
mcs/class/corlib/System.Runtime.Remoting.Activation/UrlAttribute.cs [new file with mode: 0644]
mcs/class/corlib/unix.args

index d5f5d79aa824500cc28a4f3f7aee1256ee6195a0..724d489e3d10193638498c0cd6e807666e56a565 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-24  Duncan Mak  <duncan@ximian.com>
+
+       * System.Runtime.Remoting.Activation/UrlAttribute.cs: Add to CVS.
+
+       * System.Runtime.Remoting.Activation/IConstructionCallMessage.cs:
+       This implements IMessage, IMethodCallMessage and IMethodMessage.
+
 2002-07-23  Duncan Mak  <duncan@ximian.com>
 
        * list: 
index 6bbb601e467e11282a825206fa5269a8e1dc6661..3405967465d7b51b77d87986d7ae5d92f50b6483 100644 (file)
@@ -8,10 +8,11 @@
 //
 
 using System.Collections;
+using System.Runtime.Remoting.Messaging;
 
 namespace System.Runtime.Remoting.Activation {
 
-       public interface IConstructionCallMessage {
+       public interface IConstructionCallMessage : IMessage, IMethodCallMessage, IMethodMessage {
                Type ActivationType {
                        get;
                }
diff --git a/mcs/class/corlib/System.Runtime.Remoting.Activation/UrlAttribute.cs b/mcs/class/corlib/System.Runtime.Remoting.Activation/UrlAttribute.cs
new file mode 100644 (file)
index 0000000..46f8eed
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Runtime.Remoting.Activation.UrlAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian, Inc.
+//
+
+using System.Runtime.Remoting.Contexts;
+
+namespace System.Runtime.Remoting.Activation {
+
+       [Serializable]
+       public sealed class UrlAttribute : ContextAttribute
+       {
+               string url;
+               
+               public UrlAttribute (string callsiteURL)
+               {
+                       url = callsiteURL;
+               }
+
+               public string UrlValue {
+                       get { return url; }
+               }
+
+               public override bool Equals (object o)
+               {
+                       if (!(o is UrlAttribute))
+                               return false;
+                       
+                       return (((UrlAttribute) o).UrlValue == url);
+               }
+
+               [MonoTODO]
+               public override int GetHashCode ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override void GetPropertiesForNewContexts (IConstructionCallMessage ctorMsg)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override bool IsContextOK (Context ctx, IConstructionCallMessage msg)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
index 177faddc090c804f4342937a30404ec5fdcab431..2e8dff1c63b303c9751e5f2b659059246212ab92 100755 (executable)
@@ -448,6 +448,7 @@ System.Runtime.Remoting.Activation/ActivatorLevel.cs
 System.Runtime.Remoting.Activation/IActivator.cs
 System.Runtime.Remoting.Activation/IConstructionCallMessage.cs
 System.Runtime.Remoting.Activation/IConstructionReturnMessage.cs
+System.Runtime.Remoting.Activation/UrlAttribute.cs
 System.Runtime.Remoting.Contexts/Context.cs
 System.Runtime.Remoting.Contexts/ContextAttribute.cs
 System.Runtime.Remoting.Contexts/IContextAttribute.cs