whatis插入如何制作 [英] whatis plug in how to make it

查看:64
本文介绍了whatis插入如何制作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是插件,给我关于插件的清晰思路,然后告诉我如何进行插件

what is plug in give me the clear idea about plug in and then tell me how to make plug in

推荐答案

有很多资源可以告诉您如何使用.net制作插件...尝试使用Google!找到特定部分需要帮助的代码后,请再次发布,我们将看看是否能为您指明正确的方向.
There are plenty of resources that tell you how to make a plugin using .net... try google!! Once you have some code that you need help with a specific portion, post again and we''ll see if we can point you in the right direction.


请参阅此最新问题以及答案,包括我的答案:如何创建自己的插件 [ ^ ].

但是,这些答案是为应该知道插件是什么的读者创建的.您可能需要了解一下.

插件体系结构很重要,高级功能可用于更改或扩展某些应用程序的行为(我们称其为主机应用程序),而无需重新编译.新的部分称为插件,并在创建后添加到主机应用程序中.主机系统将可执行文件识别为插件,在运行时将其加载,并以某种功能方式包含在系统中.通常,插件与主机应用程序在相同的进程中运行,但并不总是在同一 Application Domain 中运行(对于.NET),如果需要重新安装插件,则很重要-loadable,请参考我过去的解决方案,其中提供了建筑草图.

插件的范例非常有趣.插件实现宿主应用程序已知的某些接口,该接口用于宿主调用插件的方法/属性.在更一般的情况下,接口方法的实现使用由主机部分提供并传递给插件实现的 host API .在.NET中,插件类的初始化由主机应用程序使用Reflection完成.

—SA
Please see this recent question and the answers, including mine: how to create own plug in[^].

However, those answers are created for readers who are supposed to have an idea what is the plug-in. You probably need to get an idea.

A plug-in architecture is important and advanced features used to change or extend behavior of some application (let''s call it host application) without re-compilation. The new parts are called plug-ins and added to the host application after it is already created. The host system recognizes the executable files as plug-ins, loads them during run-time and includes in the system in some functional way. Normally, the plug-ins are run in the same process as the host application, but not always in the same Application Domain, as for .NET, it is important if the plug-ins need to be re-loadable, please find reference to my past solution where I provide an architectural sketch.

The paradigm of plug-ins is pretty interesting. A plug-in implements certain interface known to the host application which is used to host to call plug-in''t methods/properties. In more general case, implementations of the interface methods use the host API provided by the host part and passed to the implementation of a plug-in. In .NET, initialization of the plug-in classes is done by the host application using Reflection.

—SA


这篇关于whatis插入如何制作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆