AddressingProperty.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Diagnostics
  5. {
  6. using System.Runtime;
  7. using System.ServiceModel;
  8. using System.ServiceModel.Channels;
  9. using System.Xml;
  10. class AddressingProperty
  11. {
  12. string action;
  13. Uri to;
  14. EndpointAddress replyTo;
  15. System.Xml.UniqueId messageId;
  16. public AddressingProperty(MessageHeaders headers)
  17. {
  18. Fx.Assert(null != headers, "");
  19. this.action = headers.Action;
  20. this.to = headers.To;
  21. this.replyTo = headers.ReplyTo;
  22. this.messageId = headers.MessageId;
  23. }
  24. public string Action
  25. {
  26. get { return this.action; }
  27. }
  28. public UniqueId MessageId
  29. {
  30. get { return this.messageId; }
  31. }
  32. public static string Name
  33. {
  34. get { return MessageLogTraceRecord.AddressingElementName; }
  35. }
  36. public EndpointAddress ReplyTo
  37. {
  38. get { return this.replyTo; }
  39. }
  40. public Uri To
  41. {
  42. get { return this.to; }
  43. }
  44. }
  45. }