IInputChannel.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. //----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //----------------------------------------------------------------------------
  4. namespace System.ServiceModel.Channels
  5. {
  6. using System;
  7. using System.ServiceModel;
  8. using System.Collections;
  9. public interface IInputChannel : IChannel
  10. {
  11. EndpointAddress LocalAddress { get; }
  12. Message Receive();
  13. Message Receive(TimeSpan timeout);
  14. IAsyncResult BeginReceive(AsyncCallback callback, object state);
  15. IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state);
  16. Message EndReceive(IAsyncResult result);
  17. bool TryReceive(TimeSpan timeout, out Message message);
  18. IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state);
  19. bool EndTryReceive(IAsyncResult result, out Message message);
  20. bool WaitForMessage(TimeSpan timeout);
  21. IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state);
  22. bool EndWaitForMessage(IAsyncResult result);
  23. }
  24. }