AsyncResult.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. //
  2. // System.Runtime.Remoting.Messaging/AsyncResult.cs
  3. //
  4. // Authors:
  5. // Joe Shaw ([email protected])
  6. // Martin Baulig ([email protected])
  7. // Dietmar Maurer ([email protected])
  8. // Duncan Mak ([email protected])
  9. //
  10. // (C) 2001 Ximian, Inc. http://www.ximian.com
  11. //
  12. using System;
  13. using System.Threading;
  14. using System.Runtime.CompilerServices;
  15. namespace System.Runtime.Remoting.Messaging {
  16. public class AsyncResult : IAsyncResult, IMessageSink {
  17. object async_state;
  18. WaitHandle handle;
  19. object async_delegate;
  20. IntPtr data;
  21. bool sync_completed;
  22. bool completed;
  23. bool endinvoke_called;
  24. public virtual object AsyncState
  25. {
  26. get {
  27. return async_state;
  28. }
  29. }
  30. public virtual WaitHandle AsyncWaitHandle
  31. {
  32. get {
  33. return handle;
  34. }
  35. }
  36. public virtual bool CompletedSynchronously
  37. {
  38. get {
  39. return sync_completed;
  40. }
  41. }
  42. public virtual bool IsCompleted
  43. {
  44. get {
  45. return completed;
  46. }
  47. }
  48. public bool EndInvokeCalled
  49. {
  50. get {
  51. return endinvoke_called;
  52. }
  53. set {
  54. endinvoke_called = value;
  55. }
  56. }
  57. public virtual object AsyncDelegate
  58. {
  59. get {
  60. return async_delegate;
  61. }
  62. }
  63. [MonoTODO]
  64. public IMessageSink NextSink {
  65. get {
  66. throw new NotImplementedException ();
  67. }
  68. }
  69. [MonoTODO]
  70. public virtual IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. [MonoTODO]
  75. public virtual IMessage GetReplyMessage()
  76. {
  77. throw new NotImplementedException ();
  78. }
  79. [MonoTODO]
  80. public virtual void SetMessageCtrl (IMessageCtrl mc)
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. public virtual IMessage SyncProcessMessage (IMessage msg)
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. }
  90. }