I am having trouble finding a c# example that shows how to raise a cross-thread event in the following condition:
Let's say I have 1 Event and 3 Threads:
Event DoStuff
Thread A - WinForm
Thread B - Thread Spawned from Thread A to do some processing. Has Function Foo() which is subscribed to DoStuff
Thread C - Thread Spawned from Thread B to do some subprocessing and Raises event DoStuff
Now How do I ensure that The event Raised in Thread C is processed inside of Thread B instead of C or A.
All of the samples I run accross hint towards Form/Control.Invloke, or somthing of that sort, where I really actually want to have whatever Thread actually subscribed to the event execute inside of it's repsective thread, not just the Main Form Thread.