Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个调度程序,它在每个新事件中创建新线程。在基于某个 id 的那个线程中,使用 System.AddIn 加载一个 dll。
现在我想中途终止那个事件?
在这种情况下如何实现此功能
我假设您正在将插件加载到单独的应用程序域中。如果没有,就开始做吧。否则你无法以可控的方式杀死它们。
要杀死插件,请卸载 appdomain。