Welcome to MSDN Blogs Sign in | Join | Help

Syndication

Browse by Tags

Homeward Bound
The last year in Redmond has been truly amazing. Besides working with the great people in the .NET team and elsewhere at Microsoft – an experience that can’t be done justice in a brief blog post like this – I’ve also had a chance to take in Seattle and Read More...

Posted Tuesday, September 29, 2009 10:01 PM by niblumha | (Comments Off)

Debug Composition from within Visual Studio
This morning Dave came up with a great suggestion for finding MEF composition problems from within Visual Studio. By registering the composition analyzer as an external tool, the root cause of a composition problem can be located in a flash! Step 1 - Read More...

Posted Thursday, September 24, 2009 8:12 PM by niblumha | 1 Comments

Filed under:

Parameterised Triggers and Re-Entrant States in Stateless v2
Since working on a clinical outcomes review system a couple of years ago, I’ve been aware of the gap between simple hand-coded workflows and the full-blown workflow tools. Stateless embodies the idea that a state machine can use closures to implement Read More...

Posted Sunday, August 30, 2009 2:34 AM by niblumha | 2 Comments

Filed under:

Analyze MEF Assemblies from the Command Line
In MEF Preview 6 we shipped a sample assembly called Microsoft.ComponentModel.Composition.Diagnostics , demonstrating the kinds of things that can be determined by (semi-) statically analyzing MEF catalogs. With Preview 7 we added a utility that makes Read More...

Posted Friday, August 28, 2009 6:45 PM by niblumha | 6 Comments

Filed under:

Dynamic Part Instantiation in MEF
Disclaimer: This functionality is not shipping in .NET 4 (but is available in the recent CodePlex drops , see below for more details.) The golden rule of using composition to simplify your architecture is to avoid calling the container directly . Until Read More...

Posted Friday, August 28, 2009 1:57 AM by niblumha | 5 Comments

Filed under:

Implementing Optional Exports with MEF Stable Composition
Disclaimer: As usual, this blog post is discussing pre-release software, which may differ from the final released version. Ayende once observed that MEF is very focused on dependency management. It’s an accurate description of the driving force that has Read More...

Posted Friday, July 17, 2009 6:59 PM by niblumha | 0 Comments

Filed under:

MEF Preview 6 Available
In the three months that have passed since the last release, we’ve been very busy making final adjustments to get closer to RTM. In this post I’ve summarized the biggest changes between the Preview 5 and Preview 6 releases. The highlights are: Silverlight Read More...

Posted Thursday, July 09, 2009 5:29 PM by niblumha | 7 Comments

Filed under:

Appearance on .NET Rocks!
This week I took some time out to talk to Richard and Carl on .NET Rocks! about Autofac, MEF and component-oriented software in general. If you have any questions about material from the show, please feel free to post them in the comments. Read More...

Posted Friday, May 29, 2009 6:55 PM by niblumha | 2 Comments

State Machines in Domain Models
I was reminded today of Stateless , a little project that I’m quite fond of. Stateless is a hierarchical state machine framework based on Simple State Machine for Boo , but configured using C# 3.0. When I announced Stateless last year , I hardly even Read More...

Posted Thursday, April 16, 2009 7:52 AM by niblumha | 10 Comments

Filed under: ,

MEF: Dependencies are Queries?
Start to schematically represent any component system and you’re likely to come up with a diagram like: So what do the dependency and the service actually mean ? In most implementations, each is associated with a key: Here the Screen Renderer component Read More...

Posted Thursday, April 16, 2009 12:01 AM by niblumha | 7 Comments

Filed under:

Hosting MEF Extensions in an IoC Container
There has been a lot of discussion among IoC container users about the similarities between MEF and IoC containers. Most of this has been addressing the question - “should MEF and an IoC container be used in the same app, or are they exclusive?” One possible Read More...

Posted Monday, March 16, 2009 11:14 PM by niblumha | 1 Comments

Filed under: ,

IoC Open Space at ALT.NET Seattle
We had a great little open discussion on building IoC-driven apps today at ALT.NET Seattle. A handful of good points came up: Building aggregate object graphs for the UI layer is giving people headaches Dynamic instantiation patterns like 'injected context' Read More...

Posted Sunday, March 01, 2009 12:08 AM by niblumha | 1 Comments

Filed under:

IoC on Silverlight
A number of IoC containers have Silverlight versions - Ninject and Unity especially seem to have healthy Silverlight offerings. Silverlight 2.0 is a variant of the .NET runtime, so this isn't too surprising. Thanks to Tyson Stolarski and Rinat Abdullin Read More...

Posted Sunday, January 04, 2009 5:48 PM by niblumha | 2 Comments

Filed under: , ,

Declarative Context Adapters
The first post in this series introduced the problem of accessing IoC container features dynamically. We brushed over two common patterns: Global Container (or Static Service Locator ) Injected Context Before we move on from this topic, I'd like to look Read More...

Posted Sunday, January 04, 2009 4:59 PM by niblumha | 2 Comments

Explicit Context Dependencies
As a follow up from my last post about Global Container vs. Injected Context , I would like to share this snippet from Component Software , which casts the difference between the two approaches in another light: "A software component is a unit of Read More...

Posted Monday, December 29, 2008 6:34 PM by niblumha | 1 Comments

More Posts Next page »
Page view tracker