Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I would look into using reflection to invoke the callback. Commented Apr 11, 2014 at 7:50
  • Is it also a valid scenario when you want to execute a callback into the worker thread from inside the Dispatcher.Invoke callback made from the worker thread? Commented Apr 11, 2014 at 8:54
  • @TravisJ : I don't understand how reflection will help. Commented Apr 11, 2014 at 14:17
  • @Noseratio : Forget dispatcher.invoke, forget the ui thread. Imagine I have 2 worker threads and I want to dispatch my event to both worker threads; what can I use? Commented Apr 11, 2014 at 14:18
  • I'd implement it this way. Commented Apr 12, 2014 at 3:52