开发者

How to kill Thread + .net + System.AddIn

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 开发者_JAVA技巧kill that event in a midway?

How can i implement this functionality in this situation


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜