c# - plugin-based applications with plugins that modify other plugins -


i taking @ how build modular, plugins-based applications in c#. reading prism , mef (that i've used in projects of mine).

all examples , articles found talk discrete modules. question this. let's 1 of modules doesnt provide new views, "simply" needs alter existing view, provided different module, adding 1 or more fields , further logic. how that?

would approach check @ composition-time other parts present in catalog, , programmatically modify them?

i can think of possible solution if there "module 1" , "module 2" changes in "module 1". if scenario gets far more complex? example if have basic "module 1" has modified "module 2" , "module 3", exists "module 4" modifies ui , logic provided "module 2", , on... ?

could advice me on how can realized?

thanks in advance,

cheers,

gianluca

from example infer have exports little bit this, [importmany] somewhere:

[export(typeof(iview))] public class barview : iview {     ... } 

suppose 1 particular view implementation needs pluggable itself. this:

[export(typeof(iview))] public class fooview : iview {     [importmany(ifooviewplugin)]     public ienumerable<ifooviewplugin> plugins { get; set; }      ... } 

of course, still shape ifooviewplugin , decide how fooview invokes customize itself. depends on kind of customizations had in mind.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -