Rasing Asynchronous delegates in the invocation order
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I am invoking the delegates asynchronously(using Begin Invoke). These delegates are not invoked in the invocation order . How to make this delegate to raise in the invocation order. Thanks in Advance Sangeetha
-
Hi, I am invoking the delegates asynchronously(using Begin Invoke). These delegates are not invoked in the invocation order . How to make this delegate to raise in the invocation order. Thanks in Advance Sangeetha
I'm not sure you can control the order in which delegates are invoked. Instead you could use a System.Timers.Timer object (which will execute on a thread pool thread) and a synchronized list of work items. You add work items to the list and the timer routine takes them off again.