if i do somtheing like this:
new Thread(DoWork).Start();
void DoWork(){new Thread(DoMoreWork).Start();}
and i aborting the first thread that run DoWork is DoMoreWork also will aborted? if not how can i abort the sec thread (DoMoreWork)?
Thanks!
Update:
The problem that I run script with Microsoft.Scripting
and for this I start a new thread that call Execute()
method from Microsot.Scripting
and I want to be able to abort the script. I can abort my thread but I don't know which thread Execute create to run the script.