简体   繁体   中英

IoC or Dependency Injection frameworks to support for an MVVM framework

I have been developing a new MVVM framework here .

It has some interesting concepts, but I'd like to support multiple IoC containers. Right now I'm supporting just MEF, because it comes with.Net 4.0.

What are some of the more common IoC/DI frameworks I should look into supporting from the start? I'm thinking maybe 3 or so.

Castle Windsor? Ninject?

EDIT:

Just to clarify, I'm asking which IoC/DI frameworks are commonly used today. I was hoping to also learn of some of the new hotness that's out there and I've not heard of yet.

A library or framework should not use a DI Container - only applications should use containers .

Libraries and frameworks should be designed so that they are friendly to any sort of DI , whether or not the user wants to use a container or Poor Man's DI .

Assume that the user will be using Poor Man's DI and you will automatically be container agnostic .

Unity and Castle Windsor should be a must in my opinion, especially Unity since it's used in Prism and it is part of the Enterprise Library (for portability). And Castle windsor for its easy of use (for a broader community)

An alternative would be to provide a simple IoC Container just like Mvvm Light does.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM