minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Messaging / AsyncResult.cs
1 // 
2 // System.Runtime.Remoting.Messaging/AsyncResult.cs 
3 //
4 // Authors:
5 //   Joe Shaw (joe@ximian.com)
6 //   Martin Baulig (martin@gnome.org)
7 //   Dietmar Maurer (dietmar@ximian.com)
8 //
9 // (C) 2001 Ximian, Inc.  http://www.ximian.com
10 //
11
12 using System;
13 using System.Threading;
14 using System.Runtime.CompilerServices;
15
16 namespace System.Runtime.Remoting.Messaging {
17
18 public class AsyncResult : IAsyncResult {
19
20         object async_state;
21         WaitHandle handle;
22         object async_delegate;
23         IntPtr data;
24         bool sync_completed;
25         bool completed;
26         bool endinvoke_called;
27                 
28         public virtual object AsyncState
29         {
30                 get {
31                         return async_state;
32                 }
33         }
34
35         public virtual WaitHandle AsyncWaitHandle
36         {
37                 get {
38                         return handle;
39                 }
40         }
41
42         public virtual bool CompletedSynchronously
43         {
44                 get {
45                         return sync_completed;
46                 }
47         }
48
49         public virtual bool IsCompleted
50         {
51                 get {
52                         return completed;
53                 }
54         }
55                 
56         public bool EndInvokeCalled
57         {
58                 get {
59                         return endinvoke_called;
60                 }
61                 set {
62                         endinvoke_called = value;
63                 }
64         }
65                 
66         public virtual object AsyncDelegate
67         {
68                 get {
69                         return async_delegate;
70                 }
71         }
72
73 }
74 }