I want to create a pluggable architecture for my ERP project. I want to adopt the approach of nopcommerce, can anyone explain how it works please?
Asked
Active
Viewed 157 times
1 Answers
0
Did you check the sources like recommended on nopCommerce community forums?
Question asked by you: Plugin architecture
or
Question asked by you on GitHub: pluggable architecture
Anyway, here's a shortage on how it works
The method Initialize of PluginManager gets called pre application start. This due to the attribute of PluginManager
[assembly: PreApplicationStartMethod(typeof(PluginManager), "Initialize")]
Initialize() then will load all Description.txt located in the ~/Plugins (default) folder and its sub directories.
If a plugin is compatible with current nopCommerce version it shadow copy the plugin DLL and its dependencies (other DLLs) and loads it using BuildManager.

Raphael
- 990
- 1
- 13
- 24