开发者

How to kill Thread + .net + System.AddIn

开发者 https://www.devze.com 2023-04-09 01:28 出处:网络
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.

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

精彩评论

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

关注公众号