timjroberts.com
  • Blog
    • General
    • Development
  • About

Composing WCF services with MEF

by Tim Roberts on August 18, 2011 · 13 Comments

In an earlier post I showed how it was possible to extend MEF with a custom part creation policy that tied the lifetime of an exported part to the lifetime of a HTTP request or session. Another common requirement I’ve encountered many times is how to make WCF services compose-able, and in this post, I’ll [...]

Continue Reading →

Defining Web-scoped parts with MEF

by Tim Roberts on February 16, 2011 · 23 Comments

Out of the box, MEF provides you with limited options for defining the lifetime of exported parts. At its most basic you can define either transient or singleton lifetimes (CreationPolicy.NonShared and CreationPolicy.Shared respectively). We have to remember that although MEF can be used as an IoC container, it has been primarily designed to focus on managing composition rather than compile [...]

Continue Reading →

The Ambient Context Pattern

by Tim Roberts on December 29, 2010 · 3 Comments

Ambient Context as a pattern has been around for a while, and although I’ve been making heavy use of it lately I haven’t really recognized it as a pattern until fairly recently. Like me, it is also very likely that you have also been making use of ambient context. If you’ve ever written code like [...]

Continue Reading →

Hello World (redux)

by Tim Roberts on November 21, 2010 · 0 Comments

This is a little deja-vu! So, let me begin (again): This is the second time that I’ve run a blog at timjroberts.com. The first one is long gone now so let’s not dwell on it, but please, feel free to drop a comment on this post and explain the virtues of backing up your data to [...]

Continue Reading →
  • Archive

    • August 2011
    • February 2011
    • December 2010
    • November 2010
  • Tags

    mef patterns
timjroberts.com

Pages

  • About

The Latest

  • Composing WCF services with MEF
    In an earlier post I showed how it was possible to extend […]

More

Stay updated by subscribing to the RSS feed.
Copyright © 2010 Tim Roberts