MsmqIntegrationMessageProperty.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. //
  2. // MsmqIntegrationMessageProperty.cs
  3. //
  4. // Author: Atsushi Enomoto <[email protected]>
  5. //
  6. // Copyright (C) 2007 Novell, Inc (http://www.novell.com)
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining
  9. // a copy of this software and associated documentation files (the
  10. // "Software"), to deal in the Software without restriction, including
  11. // without limitation the rights to use, copy, modify, merge, publish,
  12. // distribute, sublicense, and/or sell copies of the Software, and to
  13. // permit persons to whom the Software is furnished to do so, subject to
  14. // the following conditions:
  15. //
  16. // The above copyright notice and this permission notice shall be
  17. // included in all copies or substantial portions of the Software.
  18. //
  19. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  20. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  22. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  23. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  24. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  25. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. //
  27. using System;
  28. using System.Messaging;
  29. using System.ServiceModel;
  30. using System.ServiceModel.Channels;
  31. using SMessage = System.ServiceModel.Channels.Message;
  32. namespace System.ServiceModel.MsmqIntegration
  33. {
  34. public sealed class MsmqIntegrationMessageProperty
  35. {
  36. public const string Name = "MsmqIntegrationMessageProperty";
  37. public MsmqIntegrationMessageProperty ()
  38. {
  39. }
  40. [MonoTODO]
  41. public static MsmqIntegrationMessageProperty Get (SMessage message)
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. AcknowledgeTypes? ack_type;
  46. Acknowledgment? ack;
  47. Uri adm_queue, dst_queue, res_queue;
  48. int? app_specific, body_type;
  49. DateTime? arrived_time, sent_time;
  50. bool? authenticated;
  51. object body;
  52. string correlation_id, id, label;
  53. byte [] extension, sender_id;
  54. MessageType? msg_type;
  55. MessagePriority? priority;
  56. TimeSpan? ttrq;
  57. public AcknowledgeTypes? AcknowledgeType {
  58. get { return ack_type; }
  59. set { ack_type = value; }
  60. }
  61. public Acknowledgment? Acknowledgment {
  62. get { return ack; }
  63. }
  64. public Uri AdministrationQueue {
  65. get { return adm_queue; }
  66. set { adm_queue = value; }
  67. }
  68. public int? AppSpecific {
  69. get { return app_specific; }
  70. set { app_specific = value; }
  71. }
  72. public DateTime? ArrivedTime {
  73. get { return arrived_time; }
  74. }
  75. public bool? Authenticated {
  76. get { return authenticated; }
  77. }
  78. public object Body {
  79. get { return body; }
  80. set { body = value; }
  81. }
  82. public int? BodyType {
  83. get { return body_type; }
  84. set { body_type = value; }
  85. }
  86. public string CorrelationId {
  87. get { return correlation_id; }
  88. set { correlation_id = value; }
  89. }
  90. public Uri DestinationQueue {
  91. get { return dst_queue; }
  92. }
  93. public byte [] Extension {
  94. get { return extension; }
  95. set { extension = value; }
  96. }
  97. public string Id {
  98. get { return id; }
  99. }
  100. public string Label {
  101. get { return label; }
  102. set { label = value; }
  103. }
  104. public MessageType? MessageType {
  105. get { return msg_type; }
  106. }
  107. public MessagePriority? Priority {
  108. get { return priority; }
  109. set { priority = value; }
  110. }
  111. public Uri ResponseQueue {
  112. get { return res_queue; }
  113. set { res_queue = value; }
  114. }
  115. public byte [] SenderId {
  116. get { return sender_id; }
  117. }
  118. public DateTime? SentTime {
  119. get { return sent_time; }
  120. }
  121. public TimeSpan? TimeToReachQueue {
  122. get { return ttrq; }
  123. set { ttrq = value; }
  124. }
  125. }
  126. }