MsmqInputChannel.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //
  2. // MsmqInputChannel.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. namespace System.ServiceModel.Channels
  31. {
  32. internal class MsmqInputChannel : InputChannelBase
  33. {
  34. MsmqChannelListener<IInputChannel> listener;
  35. EndpointAddress local_address;
  36. // FIXME: handle timeout
  37. public MsmqInputChannel (MsmqChannelListener<IInputChannel> listener, TimeSpan timeout)
  38. : base (listener)
  39. {
  40. this.listener = listener;
  41. }
  42. // FIXME: how is it set?
  43. public override EndpointAddress LocalAddress {
  44. get { return local_address; }
  45. }
  46. public override IAsyncResult BeginReceive (TimeSpan timeout, AsyncCallback callback, object state)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. public override IAsyncResult BeginTryReceive (TimeSpan timeout, AsyncCallback callback, object state)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. public override IAsyncResult BeginWaitForMessage (TimeSpan timeout, AsyncCallback callback, object state)
  55. {
  56. throw new NotImplementedException ();
  57. }
  58. public override Message EndReceive (IAsyncResult result)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. public override bool EndTryReceive (IAsyncResult result, out Message message)
  63. {
  64. throw new NotImplementedException ();
  65. }
  66. public override bool EndWaitForMessage (IAsyncResult result)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. public override Message Receive (TimeSpan timeout)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. public override bool TryReceive (TimeSpan timeout, out Message message)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. public override bool WaitForMessage (TimeSpan timeout)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. // ChannelBase
  83. protected override void OnAbort ()
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. protected override void OnClose (TimeSpan timeout)
  88. {
  89. throw new NotImplementedException ();
  90. }
  91. protected override void OnOpen (TimeSpan timeout)
  92. {
  93. // nothing to do
  94. }
  95. protected override IAsyncResult OnBeginOpen (TimeSpan timeout, AsyncCallback callback, object sender)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. protected override void OnEndOpen (IAsyncResult result)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. protected override IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object sender)
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. protected override void OnEndClose (IAsyncResult result)
  108. {
  109. throw new NotImplementedException ();
  110. }
  111. }
  112. }