|
|
@@ -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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+}
|