插件架构 [英] Plugin architecture
本文介绍了插件架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想了解的插件架构。特别是一个在的Windows Live Writer的implmentation使用。我指的风格,你可以配置/启用/禁用/添加/只通过添加/删除DLL的(+配置)去除附加功能。
I am trying to understand plugin-architecture. Specifically the one used in the implmentation of Windows Live Writer. I am referring to the style where you can configure/enable/disable/add/remove additional functionality just by adding/removing DLL's(+ config).
我希望看到一个基于Web的应用程序类似的东西。任何人都可以请点我正确的方向?
I hope to see something similar for a web-based application. Can anyone please point me to the right direction?
先谢谢了。
-SK
推荐答案
有看这个的文章。简而言之,你需要在一个较高的水平,做到以下几点。
Have look at this article. In a nutshell you need to do the following at a high level.
- 定义,该插件必须实现接口
- 创建一个子目录与该DLL插件特定权限住在
- 定义配置节或文件,指定由插件DLL动态加载的类型。
- 加载DLL的从插件配置和放大器;目录将使用一个AppDomain一个安全沙箱
我希望这有助于。
这篇关于插件架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文