Browse by Tags

All Tags » Managed Extensibility Framework (RSS)

New Managed Extensibility Framework (MEF) Preview

We have released an update to the Managed Extensibility Framework over on our new site on CodePlex . There have been quite a few changes since our last release , including: Shared Source (released under the MS-LPL license ) Constructor injection (via...

Binding private and internal members using the CompositionContainer

By default, the CompositionContainer will not bind to private and internal members. For example, given the following fictional class: public class ConnectionFactory { [ Import ( "ConnectionString" )] private string _ConnectionString; public...

Dependency Injection in the Managed Extensibility Framework – Named Contracts

This is part three in a series of posts on dependency injection in the Managed Extensibility Framework (MEF). You can find other posts in the series here: Dependency Injection in the Managed Extensibility Framework – Simple Injection Dependency Injection...

Getting more information from the CompositionException

As you are working yourself through the Managed Extensibility Framework, you’re likely to hit a CompositionException with an error similar to the following: System.ComponentModel.Composition.CompositionException: There was at least one composition issue...

Dependency Injection in the Managed Extensibility Framework – Optional Injection

This is part two in a series of posts on dependency injection in the Managed Extensibility Framework (MEF). You can find other posts in the series here: Dependency Injection in the Managed Extensibility Framework – Simple Injection Dependency Injection...

Customer Question – Does MEF allow injection without using attributes?

Peter Richie asks: “ MEF allows decoupling of TypeA's dependency on TypeB, but now TypeA and TypeB have an assembly-level dependency on the MEF assemblies. If I have a specific restriction on deployment of the assemblies required by TypeB such...

Dependency Injection in the Managed Extensibility Framework – Simple Injection

This is part one in a series of posts on dependency injection in the Managed Extensibility Framework (MEF). You can find other posts in the series here: Dependency Injection in the Managed Extensibility Framework – Simple Injection Dependency Injection...

Announcing the Managed Extensibility Framework CTP

I’m pleased to announce that we’ve just released a Community Technology Preview (CTP) of the Managed Extensibility Framework . Krzysztof Cwalina has previously mentioned a little about what my team’s been working on and this release...