Jelajahi Sumber

2002-03-21 Dietmar Maurer <[email protected]>

	* AsyncResult.cs: impl.

svn path=/trunk/mcs/; revision=3258
Dietmar Maurer 24 tahun lalu
induk
melakukan
2115ca92ac

+ 71 - 0
mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs

@@ -0,0 +1,71 @@
+// 
+// System.Runtime.Remoting.Messaging/AsyncResult.cs 
+//
+// Authors:
+//   Joe Shaw ([email protected])
+//   Martin Baulig ([email protected])
+//   Dietmar Maurer ([email protected])
+//
+// (C) 2001 Ximian, Inc.  http://www.ximian.com
+//
+
+using System;
+using System.Threading;
+using System.Runtime.CompilerServices;
+
+namespace System.Runtime.Remoting.Messaging {
+
+public class AsyncResult : IAsyncResult {
+
+	object async_state;
+	WaitHandle handle;
+	object async_delegate;
+	IntPtr data;
+	bool sync_completed;
+	bool completed;
+	bool endinvoke_called;
+		
+	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;
+		}
+	}
+		
+	public bool EndInvokeCalled
+	{
+		get {
+			return endinvoke_called;
+		}
+	}
+		
+	public object AsyncDelegate
+	{
+		get {
+			return async_delegate;
+		}
+	}
+
+}
+}

+ 4 - 0
mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog

@@ -1,3 +1,7 @@
+2002-03-21  Dietmar Maurer  <[email protected]>
+
+	* AsyncResult.cs: impl.
+
 2002/03/04  Nick Drochak  <[email protected]>
 
 	* Header.cs: Change properties into fields where they should be.

+ 0 - 39
mcs/class/corlib/System/IAsyncResult.cs

@@ -37,45 +37,6 @@ namespace System {
 			get;
 		}
 	}
-
-	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