silverlight - When to use MEF -


I tried unity and MEF and plain old new efforts. And when you really need to use any of these "patterns" then I am a bit confused if it is easy to use MEF or Unity if I am using new ones and satisfies my needs. .

In other words, how is the use of MEF or Unity necessary?

MEF allows segregation of subsystems within an application. This isolation is useful if you often need to apply sub-systems, or even runtime. MEF takes into account details of loading sub-systems and wiring all providers for the appropriate providers. This self-contained module, which does not know each other, is a huge step forward in the formation of an application by adding a set

An important part of the code in a traditional application is only the things Is dedicated to mixing together - Gum code MEF greatly reduces the need for Gum Code.

If you are just creating an object, you can open a file or show a dialog, it is not what the MEF is for. If you want to write code which uses a normal XI service but does not want to depend on the implementation of hard-code vendor or vendor B, then it may be a MEF candidate.


Comments