mvvm - Communicating between MEF objects -



mvvm - Communicating between MEF objects -

i'm building workbench/ide style application uses mef locate , load tools workbench @ start up.

i'm using mvvm lite build workbench , separate tools. i've got point want tools able communicate each other , workbench.

i don't mean direct communication, more "hey have info here if anyone's interested" , interested tools can pick data.

this looks much c# events , know can export interface tool(s) defines event(s) i'm wondering using mvvm lite messenger provide communication.

i've seen on here people using eventaggregator prism same thing , messenger mvvm lite analogous figured utilize it.

i'm after advice really, has used messenger mef - mef object , advocate on plain old c# events.

what looking @ here mediator pattern. utilize plain old c# events same thing... right end implementing own kind of pub/sub pattern. , if going that, why re-invent wheel?

i using prism's eventaggregator because part of prism framework injected mef. utilize lot of other things prism, it's nice 'free'. promotes loose coupling components, , of mediator implementations implemented weak event pattern prevents memory issues need avoid when destroying objects have subscribed event.

for it's worth, used utilize mvvm light, found prism more mature framework, improve documentation, examples , larger user base of operations larn from. that's opinion- know loads of people love mvvm light. play them both , pick 1 makes happy :)

mvvm mef mvvm-light

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -