2002-07-24 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Activation / UrlAttribute.cs
1 //
2 // System.Runtime.Remoting.Activation.UrlAttribute.cs
3 //
4 // Author: Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Copyright, Ximian, Inc.
7 //
8
9 using System.Runtime.Remoting.Contexts;
10
11 namespace System.Runtime.Remoting.Activation {
12
13         [Serializable]
14         public sealed class UrlAttribute : ContextAttribute
15         {
16                 string url;
17                 
18                 public UrlAttribute (string callsiteURL)
19                 {
20                         url = callsiteURL;
21                 }
22
23                 public string UrlValue {
24                         get { return url; }
25                 }
26
27                 public override bool Equals (object o)
28                 {
29                         if (!(o is UrlAttribute))
30                                 return false;
31                         
32                         return (((UrlAttribute) o).UrlValue == url);
33                 }
34
35                 [MonoTODO]
36                 public override int GetHashCode ()
37                 {
38                         throw new NotImplementedException ();
39                 }
40
41                 [MonoTODO]
42                 public override void GetPropertiesForNewContexts (IConstructionCallMessage ctorMsg)
43                 {
44                         throw new NotImplementedException ();
45                 }
46
47                 [MonoTODO]
48                 public override bool IsContextOK (Context ctx, IConstructionCallMessage msg)
49                 {
50                         throw new NotImplementedException ();
51                 }
52         }
53 }