asynchronous - C# invoke chained delegate methods asynchronously -
suppose have delegate refers bar number of methods. when invoke delegate either somedelegate(someparameter); or somedelegate.invoke(someparameter);, methods delegate refers invoked synchronously, 1 after another, right? there way make calls asynchronous ?
you can use begininvoke instead of invoke. call individual delegates asynchronously - still serially. (you should call endinvoke in callback pass begininvoke. see msdn more details.)
if want call delegates in parallel, use multicastdelegate.getinvocationlist them individually, parallel.invoke invoke them.
Comments
Post a Comment