Ingó Vals
Ingó Vals

Reputation: 4898

MEF vs Unity mostly for Composition

I'm creating a multi layer project with a lot of different assemblies and using dependency injection.

I was thinking about using some tool for composition but not sure which one to use.

MEF and Unity are strong candidates.

I think that MEF could perhaps help if I change the web part to multi tennant type.

So which one in your opinion would be good for composition mainly if I know neither of them and please include argument if able.

Upvotes: 2

Views: 665

Answers (1)

Simon. Li
Simon. Li

Reputation: 429

It depends. In my opinion, I prefer MEF than Unity as MEF based on declare composition and don't need many configuration. If you don't have the requirements which need to control components strictly such as dependency, you can try MEF.

Upvotes: 2

Related Questions