code_junkie

Does DynamicInvoke on a remote object work asynchronously?

Nov 13th, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. delegate1.DynamicInvoke(args1);
  2. // some code here
  3. delegate2.DynamicInvoke(args2);
  4.  
  5. Action write = () => Console.WriteLine("foo");
  6. Action del1 = () => { ThreadPool.QueueUserWorkItem(write); }
  7. ...
  8. del1.DynamicInvoke();
Add Comment
Please, Sign In to add comment