2002-12-06 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                         : base (callsiteURL)
20                 {
21                         url = callsiteURL;
22                 }
23
24                 public string UrlValue {
25                         get { return url; }
26                 }
27
28                 public override bool Equals (object o)
29                 {
30                         if (!(o is UrlAttribute))
31                                 return false;
32                         
33                         return (((UrlAttribute) o).UrlValue == url);
34                 }
35
36                 public override int GetHashCode ()
37                 {
38                         return url.GetHashCode ();
39                 }
40
41                 [MonoTODO]
42                 public override void GetPropertiesForNewContext (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 }