* AsyncResult.cs: Call delegate on async call completion.
authorLluis Sanchez <lluis@novell.com>
Wed, 10 Dec 2003 16:36:20 +0000 (16:36 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 10 Dec 2003 16:36:20 +0000 (16:36 -0000)
* CADMessages.cs: Removed TODO.

svn path=/trunk/mcs/; revision=20972

mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/CADMessages.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog

index 2181431b264007c57ca225eef2130642f550ddc5..7cc673d76a8c706a93c0c8b18c292824cb2a2fad 100644 (file)
@@ -117,7 +117,12 @@ public class AsyncResult : IAsyncResult, IMessageSink {
 
                completed = true;
                NativeEventCalls.SetEvent_internal (handle.Handle);
-               // TODO: invoke callback
+               
+               if (async_delegate != null)
+               {
+                       AsyncCallback ac = (AsyncCallback) async_delegate;
+                       ac (this);
+               }
 
                return null;
        }
index 785893d256a4e2af2c6b6c7773c9c7bf41244153..0c4d1de5f5e3881dead33224254c9e1a201c7a07 100755 (executable)
@@ -286,7 +286,6 @@ namespace System.Runtime.Remoting.Messaging {
                        return new CADMethodCallMessage (msg);
                }
 
-               // todo
                internal CADMethodCallMessage (IMethodCallMessage callMsg) {
                        _methodName = callMsg.MethodName;
                        _typeName = callMsg.TypeName;
index e0da7e3a20ad644793bbf00f93f58a9b63dfe735..e67285cc3a4e2e79d52912293589b79ec3efd34c 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-10  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * AsyncResult.cs: Call delegate on async call completion.
+       * CADMessages.cs: Removed TODO.
+
 2003-11-28  Dick Porter  <dick@ximian.com>
 
        * MethodCall.cs: Use the char form of IndexOf, so that the