How to kill Thread + .net + System.AddIn

127 views Asked by At

I have developed one scheduler which is creating new thread at each new event. In that thread based on some id one dll is loaded using System.AddIn.

Now i want to kill that event in a midway?

How can i implement this functionality in this situation

1

There are 1 answers

0
adrianm On

I assume you are loading the addins in a separate appdomain. If not, start doing it. Otherwise you can't kill them in a controlled manner.

To kill an addin, unload the appdomain.