MEF has potential, but as a DI container, it lacks:
- Code as Configuration
- Auto Registration
- XML configuration (not so important to me)
- Custom Lifetimes
- Interception
Those things are pretty important.
For Lifestyle it lacks:
- Per graph
- Web Request Context
- Thread Context
- Session Context
- Pooled
- Scoped
- Custom Reference
References: – Mark Seemann’s book “Dependency Injection in .NET”