开发者

Creating a plugin feature in asp.net

I have an interface that others can implement. I want people to be able to create a concrete implementation of the interface, and then be able to drop their .dll into the /bin directory, and then have my asp.net web 开发者_如何学运维application use their implementation.

Is this possible?

Any other ideas on how to make a plugin type architecture so people using the web application can extend it w/o having to change the base codebase?


Take a look at the Managed Extensibility Framework. It will be a part of the Base Class Library in .NET 4, but you can use it already with .NET 3.5 with the open source version.

It is particularly designed for extensibility scenarios (hence the name).

Another option entirely is the types in the System.AddIns namesapce (available in .NET 3.5).

This post by Krzysztof Cwalina explains how the two fit together (or not).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜