asp.net mvc 3 - Instantiating a class dynamically c# -


i working on developing plug , play framework in asp.net mvc whereby can define modules separate projects main project. so, developer can create many modules want.

what need able update settings of of such modules. that, in main project, defined base class common settings plus each module has own custom settings. when there edit on module, have instantiate instance of module in main project. but, main project has no knowledge of modules.

how achieve this?

thanks!

you can use dependency injection , inject modules application @ composition root. per configuration can use code or xml (configuration file). can auto wiring, late binding etc depending on need.

you can have initializers @ each module whenever register module, should initialize registered modules , inject dependencies etc.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -