3
shouts

Creating a FakeExportProvider to help with testing MEF code

published 326 days, 22 hours, 49 minutes ago posted by http://selfinflicted.myopenid.com/http://selfinflicted.myopenid.com/ 327 days, 15 hours ago
Thursday, March 19, 2009 11:00:53 PM GMT Thursday, March 19, 2009 6:49:27 AM GMT

If you don’t know what the purpose of an export provider in MEF is, then I recommend you to read "Using ExportProvider to customize container behavior Part I" by Glenn Block for an in-depth description. The short version is that the export providers it so serve exports to the composition container. In this post I am going to show how to create an export provider which serves instances of objects by allowing you to directly register them for a specific contract. The export provider can then be passed to the composition container and provide known exports.

category: Architecture | clicked: 1 | | source: www.thecodejunkie.com | show counter code
tags: Architecture, C#, MEF, Testing

No comments yet, be the first one to post comment.

To post your comment please login or signup