PeerHopCountAttribute.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel
  5. {
  6. using System;
  7. using System.Collections;
  8. using System.Collections.Generic;
  9. using System.Net.Security;
  10. using System.ServiceModel.Channels;
  11. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  12. public sealed class PeerHopCountAttribute : MessageHeaderAttribute
  13. {
  14. public PeerHopCountAttribute()
  15. : base()
  16. {
  17. base.Name = PeerStrings.HopCountElementName;
  18. base.Namespace = PeerStrings.HopCountElementNamespace;
  19. base.ProtectionLevel = ProtectionLevel.None;
  20. base.MustUnderstand = false;
  21. }
  22. public new bool MustUnderstand
  23. {
  24. get { return base.MustUnderstand; }
  25. }
  26. public new bool Relay
  27. {
  28. get { return base.Relay; }
  29. }
  30. public new string Actor
  31. {
  32. get { return base.Actor; }
  33. }
  34. public new string Namespace
  35. {
  36. get { return base.Namespace; }
  37. }
  38. public new string Name
  39. {
  40. get { return base.Name; }
  41. }
  42. public new ProtectionLevel ProtectionLevel
  43. {
  44. get { return base.ProtectionLevel; }
  45. }
  46. }
  47. }