WebClientAsyncResult.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // System.Web.Services.Protocols.WebClientAsyncResult.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Net;
  10. using System.Threading;
  11. namespace System.Web.Services.Protocols {
  12. public class WebClientAsyncResult : IAsyncResult {
  13. #region Fields
  14. WaitHandle waitHandle;
  15. WebClientProtocol protocol;
  16. WebRequest request;
  17. AsyncCallback callback;
  18. object asyncState;
  19. #endregion // Fields
  20. #region Constructors
  21. [MonoTODO ("Figure out what this does.")]
  22. internal WebClientAsyncResult (WebClientProtocol protocol, object x, WebRequest request, AsyncCallback callback, object asyncState, int y)
  23. {
  24. this.protocol = protocol;
  25. this.request = request;
  26. this.callback = callback;
  27. this.asyncState = asyncState;
  28. }
  29. #endregion // Constructors
  30. #region Properties
  31. public object AsyncState {
  32. get { return asyncState; }
  33. }
  34. public WaitHandle AsyncWaitHandle {
  35. get { return waitHandle; }
  36. }
  37. public bool CompletedSynchronously {
  38. [MonoTODO]
  39. get { throw new NotImplementedException (); }
  40. }
  41. public bool IsCompleted {
  42. [MonoTODO]
  43. get { throw new NotImplementedException (); }
  44. }
  45. #endregion // Properties
  46. #region Methods
  47. public void Abort ()
  48. {
  49. request.Abort ();
  50. }
  51. #endregion // Methods
  52. }
  53. }