Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » MEF

Should I use MEF with an IoC container? - Part 1

In my post "Should I use MEF for my IoC needs" we took a look at the question of whether or not it is appropriate to use MEF instead of a traditional IoC container. In this post we'll discuss the question of whether or not you should use both an IoC container
Posted by Glenn Block | 0 Comments
Filed under: ,

Open-generic support in MEF Contrib

A while ago I said it couldn’t be done, at least without hacky string parsing. Folks weren’t happy and they let us know it including Oren . Our team know the power that open-generic support brings to systems, but at the time there was no clean way to
Posted by Glenn Block | 0 Comments
Filed under: ,

Should I use MEF for my general IoC needs?

Disclaimer: This is not an encouragement to use MEF to replace your IoC container, these are guidelines to help those who are considering it's use. This has been a question we hear again and again both internally and externally. MEF in V1 is targetting
Posted by Glenn Block | 2 Comments
Filed under:

Stable Composition in MEF Preview 6

Nick just posted on a new and very important feature we added in Preview 6 which we call Stable Composition. To give you an idea of why we added this, in the past if you had a part, say OrderProcessor, that had a required import of ILogger, and no logger
Posted by Glenn Block | 0 Comments
Filed under:

MEF and XAML integration – Self composition

As I am hoping you heard from Nick , we just shipped MEF Preview 6 which includes a version of MEF for Silverlight 3! At the same time that we’ve been wrapping up on our .NET 4.0 release, we are busy working on a proper release for Silverlight vNext.
Posted by Glenn Block | 10 Comments
Filed under: , ,

Meffifying Windows Azure

Magnus has been off doing some interesting work around integrating MEF with Windows Azure . The first question you might be asking is Why? In his words, he set out to build a template for Windows Azure templates that: enables testability abstracts away
Posted by Glenn Block | 0 Comments
Filed under: ,

Upcoming talks at NDC in Oslo and Poland

Next week, I am heading to Europe for two weeks to give several talks. My first stop is NDC 2009 , where I’ll be delivering the following talks: Framework Design Guidelines Building Maintainable Enterprise Applications with Silverlight and WPF Building
Posted by Glenn Block | 1 Comments

Customizing container behavior part 2 of N - Defaults

Before I get into the post, let me start off with a word of advice for new bloggers. Never say in a post, this is the first of many to come. RESIST! You are just setting yourself up for never doing that second post. I know as the last post in this series
Posted by Glenn Block | 1 Comments
Filed under: ,

MEF Preview 5, changes and enhancements

We recently shipped MEF preview 5 on Codeplex , an exciting release. In the latest release, you’ll find we’ve made quite a few changes, and some really powerful enhancements to our previous codebase. In this post, I’ll talk about those changes in detail,
Posted by Glenn Block | 1 Comments
Filed under:

Creating a functional programming model for MEF

Disclaimer: This is a prototype, not production ready code. It is more illustrative of what you can do with MEF, and how things work under the covers. The other day I was working one of our internal partners who is looking to integrate MEF into their

Why doesn’t MEF support open-generics for exports? Because MEF is not type based.

Update: We've posted an extension for doing open generics in MEF contrib. Read about it here: http://blogs.msdn.com/gblock/archive/2009/08/20/open-generic-support-in-mef-contrib.aspx I get this question all the time. Recently it popped it’s head on the
Posted by Glenn Block | 2 Comments
Filed under: ,

Recomposition and constructors

Yesterday on twitter I was expressing how far behind I am  on blogging, and how I don’t know where to start. Ayende (Oren) responded by saying “Just start bloggging!” So here goes. Ben Hall pinged me over IM yesterday asking about recomposable imports
Posted by Glenn Block | 0 Comments
Filed under: ,

Event Aggregation with MEF (with and without EventAggregator)

The title probably sounds like an oxymoron, but it is not. Recently there was a question on our CodePlex forums from Denis Vuyka about whether or not MEF supports anything like EventBroker for pub/sub type communication. Asking such a question makes a
Posted by Glenn Block | 1 Comments
Attachment(s): MefEventWiring.zip

CommonServiceLocator for MEF, a service is a service.

Today, I finally got around to uploading a CommonServiceLocator adapter for MEF. The code is actually quite simple thanks to Chris Tavares providing ServiceLocatorImplBase. (Updated thanks to feedback from several folks) public class MefServiceLocator
Posted by Glenn Block | 2 Comments

Managed Extensibility Framework Preview 4, a grab bag of goodies.

If you haven’t seen Krys and David’s announcement, we just released another drop of MEF (I need to hold myself from breaking out in hysterics when I say that ) on CodePlex . This release contains a whole grab bag of goodies, some of which may initially
Posted by Glenn Block | 12 Comments
Filed under:
More Posts Next page »
 
Page view tracker