MEF:从不同的插件加载插件

发布于 2024-09-28 01:01:20 字数 24 浏览 0 评论 0原文

是否可以从另一个不同的插件加载插件

Is it possible to load a plugin from a another different plugin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱要勇敢去追 2024-10-05 01:01:20

是的,只要您不创建循环引用就可以。例如,在一个“插件”中导出日志服务,并在许多其他插件中使用它是很常见的。

另外,如果您的主应用程序有一个扩展点(例如驱动程序),则驱动程序插件之一本身可以有一个扩展点(例如协议),并且其他人可以为该扩展点编写插件。

SoapBox Core 的工作原理如下。

Yes, you can as long as you're not creating a circular reference. For instance, it's common to export a Logging Service in one "plugin", and consume it in many others.

Also, if your main application has an extension point (e.g. Drivers), one of the Driver plugins can itself have an extension point (e.g. Protocols) and someone else can write a plugin for that extension point.

SoapBox Core works like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文