C
Christoph Nahr
The task: I want to let a background thread and a Windows Forms
foreground thread communicate via callback methods.
Now synchronization of a *single* delegate works just fine with the
usual Control.Invoke or Control.BeginInvoke methods.
However, I couldn't find any information on using this technique with
multicast delegates, i.e. the magic thingie created by the "event"
keyword in C#.
Is it possible to marshal calls on multicast delegates to another
thread? Perhaps even one specific target thread for each individual
delegate? If so, how would I go about it?
foreground thread communicate via callback methods.
Now synchronization of a *single* delegate works just fine with the
usual Control.Invoke or Control.BeginInvoke methods.
However, I couldn't find any information on using this technique with
multicast delegates, i.e. the magic thingie created by the "event"
keyword in C#.
Is it possible to marshal calls on multicast delegates to another
thread? Perhaps even one specific target thread for each individual
delegate? If so, how would I go about it?