impl. MonoAsyncResult
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Wed, 20 Mar 2002 11:08:05 +0000 (11:08 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Wed, 20 Mar 2002 11:08:05 +0000 (11:08 -0000)
svn path=/trunk/mcs/; revision=3233

mcs/class/corlib/System/IAsyncResult.cs

index aabe7995bbcfd6f2de9585bcd68a4314632a7f1a..55f9e5edad05d3cfd3f4dd8648c69b4a68d54559 100644 (file)
@@ -11,6 +11,7 @@
 
 using System;
 using System.Threading;
+using System.Runtime.CompilerServices;
 
 namespace System {
 
@@ -37,6 +38,45 @@ namespace System {
                }
        }
 
+       internal class MonoAsyncResult : IAsyncResult {
+
+               object async_state;
+               WaitHandle handle;
+               IntPtr data;
+               bool sync_completed;
+               bool completed;
+               
+               public object AsyncState
+               {
+                       get {
+                               return async_state;
+                       }
+               }
+
+               public WaitHandle AsyncWaitHandle
+               {
+                       get {
+                               return handle;
+                       }
+               }
+
+               public bool CompletedSynchronously
+               {
+                       get {
+                               return sync_completed;
+                       }
+               }
+
+               public bool IsCompleted
+               {
+                       get {
+                               return completed;
+                       }
+               }
+               
+
+       }
+       
 } // Namespace System