MessageHeaderAttribute.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel
  5. {
  6. [AttributeUsage(ServiceModelAttributeTargets.MessageMember, AllowMultiple = false, Inherited = false)]
  7. public class MessageHeaderAttribute : MessageContractMemberAttribute
  8. {
  9. bool mustUnderstand;
  10. bool isMustUnderstandSet;
  11. bool relay;
  12. bool isRelaySet;
  13. string actor;
  14. public bool MustUnderstand
  15. {
  16. get { return mustUnderstand; }
  17. set { mustUnderstand = value; isMustUnderstandSet = true; }
  18. }
  19. public bool Relay
  20. {
  21. get { return relay; }
  22. set { relay = value; isRelaySet = true; }
  23. }
  24. public string Actor
  25. {
  26. get { return actor; }
  27. set { actor = value; }
  28. }
  29. internal bool IsMustUnderstandSet
  30. {
  31. get { return isMustUnderstandSet; }
  32. }
  33. internal bool IsRelaySet
  34. {
  35. get { return isRelaySet; }
  36. }
  37. }
  38. }