UrlAttribute.cs 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.Runtime.Remoting.Activation.UrlAttribute.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Copyright, Ximian, Inc.
  7. //
  8. using System.Runtime.Remoting.Contexts;
  9. namespace System.Runtime.Remoting.Activation {
  10. [Serializable]
  11. public sealed class UrlAttribute : ContextAttribute
  12. {
  13. string url;
  14. public UrlAttribute (string callsiteURL)
  15. : base (callsiteURL)
  16. {
  17. url = callsiteURL;
  18. }
  19. public string UrlValue {
  20. get { return url; }
  21. }
  22. public override bool Equals (object o)
  23. {
  24. if (!(o is UrlAttribute))
  25. return false;
  26. return (((UrlAttribute) o).UrlValue == url);
  27. }
  28. public override int GetHashCode ()
  29. {
  30. return url.GetHashCode ();
  31. }
  32. [MonoTODO]
  33. public override void GetPropertiesForNewContext (IConstructionCallMessage ctorMsg)
  34. {
  35. throw new NotImplementedException ();
  36. }
  37. [MonoTODO]
  38. public override bool IsContextOK (Context ctx, IConstructionCallMessage msg)
  39. {
  40. throw new NotImplementedException ();
  41. }
  42. }
  43. }