I'm using .Net 3.5 (C#) and I have a class with Start and Stop methods.
I'm using BackgroundWorker.DoWork in order to call the Start method from another thread.
I want to be able to send a command from my main thread to that thread (the one running the Start method) and tell it to stop the current method it's running and start running another (i.e. stop running the Start method and start running the Stop method).
What is the best way to do that?
Thanks!