Geek Noise
Rants, rambles, news and notes by Peter Provost
14

Enterprise Library and Object Builder

Saturday, 14 January 2006 08:52 by Peter Provost

While finally catching up on blogs I read, I ran across Brian Buttons recent post titled Enterprise Library and Object Builder. Whether you are using CAB, EntLib or Object Builder directly you should go read his post, as it is full of all kinds of nuggets. For example:

The way OB can tell whether or not to treat an instance of a singleton or not is through ObjectBuilder concepts called Locators and LifetimeContainers. LifetimeContainers, in OB-speak, manage the lifetime of named instances of objects. You can register an object and its name with a LifetimeContainer, and it will keep that object alive until such time as you dispose of the LifetimeContainer. And every LifetimeContainer is associated with a Locator. A Locator acts as a dictionary that maps instance names to objects, but it does it using WeakReferences — this means that storing something in a Locator will not prevent that object from being GCed. Tot keep an object alive, you need to provide the LifetimeContainer as well, which is what keeps the references in use, preventing the object from being scavenging out of existence.

Good stuff.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
24

Slides and Code from Code Camp

Monday, 24 October 2005 06:45 by Peter Provost

Yesterday at Seattle Code Camp, I did four presentations, two with Brad Wilson and two by myself. During our talks, we promised to share the slides and code from our demos, so here you go.

  • Monad – The New Microsoft Command Shell
  • Dependency Injection – What, Why and How
    • Powerpoint (58 KB)
    • Sorry, but the code from this one isn’t available.
  • TDD GUI Using MVP (and the pair programming game)
  • Composite User Interface Application Block

I have lots of thank-yous that I want to share. Many thanks to the attendees. The talks were a lot of fun and I love it when the attendees involve themselves and ask lots of questions. Thanks to Ed Jezierski for providing some of the slides I used in the CAB talk and thanks to Adam Barr for sharing his Monad slides with me. Thanks to Chris Kinsman and Jason Mauer for putting on a great event. Finally thanks again to Brad for being a great co-presenter.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5