1

I have question about this plugin system: .NET 4.0 ASP.NET MVC 3 plug-in architecture with embedded views

It is possible when I start ptoject (web site local in visual studio using ctrl + f5) that when I delete plugin.dll from plugin folder. System automaticly detect it and disable module or when I will put new plugin .dll to plugin folder, system automaticly detect new plugin without rebuild completly solution ? I just need the plugin system which t will not need restart server when user is installing it to the aplication.

Thnaks for your help and sorry for my english !

Martin Haščák
  • 350
  • 6
  • 29

1 Answers1

1

Be careful with the plugins architecture : once you've loaded an assembly in an AppDomain, it cannot be unloaded ( see How to unload an assembly from the primary AppDomain? ).

You may want to have a look at MEF : http://msdn.microsoft.com/en-us/library/system.componentmodel.composition%28VS.100%29.aspx

Community
  • 1
  • 1
mathieu
  • 30,974
  • 4
  • 64
  • 90
  • Thanks, so this way of plugins architecture is not good ? I saw a lot of tutorials but i still can´t find good solution. Do you know some best architecture whitch use MEF plugin plug and play? – Martin Haščák Jul 31 '12 at 07:57
  • It is a good architecture, you just have to know some of it's drawbacks. – mathieu Jul 31 '12 at 08:04
  • I found plugin architecture using mef http://www.fidelitydesign.net/?p=159 but witout rebulding aplication, framework not detect new plugin. – Martin Haščák Jul 31 '12 at 08:20