Chris Stuff
Categories
-
Recent Posts
Recent Comments
Archives
- February 2013
- January 2013
- December 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- December 2011
- May 2011
- March 2011
- December 2010
- August 2010
- May 2010
- March 2010
- February 2010
- January 2010
- December 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- January 2009
Category Archives: StructureMap
Hail to the king, baby!
Looks like StructureMap 2.5 dropped this weekend. Which is nice, as we’ve been running off of the trunk for around six months. On a side note, I never really *openly* mocked the release as the Duke Nukem Forever release, just … Continue reading
The Rhino.Mocks’ AssertWasCalled method does work
This behavior is probably clearly specified somewhere, but somehow it has been non-obvious to the four people on our team to the point that we were leaning toward banning its use. I didn’t want to go that far, so figured … Continue reading
Also posted in DRY, jQuery
5 Comments
Integrating StructureMap and NHibernate with WCF
Following many examples I found online for other IoC containers, I borrowed utilized those designs to create a StructureMap instance provider. One problem we ran into with that design was dealing with NHibernate. Mainly, there are two types that are … Continue reading
Some IoC Container guidelines
So Derick Bailey asked me the other day a few weeks ago to describe how we use our IoC container. I wouldn’t call it “best practices”, though some of these tips came from the creator of our container of choice, … Continue reading
Building arrays in StructureMap 2.5
Although it was possible in previous versions of StructureMap, the new fluent interface for StructureMap configuration in version 2.5 allows easy configuration of array type constructor parameters. For example, consider a simple order processor pipeline: public class OrderPipeline { private … Continue reading
StuctureMap: Advanced-level Usage Scenarios (Part 1: Type/Convention Scanners)
I’ll start with my strong hand on the advanced StructureMap-foo and go straight to the type scanners (a.k.a. convention scanners). Thankfully, there was a thread on the StructureMap Users mailing list with just the kind of problem these things solve. … Continue reading
Integrating StructureMap with WCF
When developing with an IoC container like StructureMap, eventually some place in your code you will need to call the registry to instantiate your classes with their dependencies. With StructureMap, this means a call to ObjectFactory.GetInstance. Ideally, we’d like to … Continue reading
StructureMap: Interlude
I’m trying to wrap up the “StructureMap: Advanced Scenarios Usage” post. In the meantime, I wanted to make you aware of a few things: I just updated my StructureMap: Basic Scenario Usage post with a correction. I was mistaken about … Continue reading
StructureMap: Medium-level Usage Scenarios
This is a follow-on to my previous post about basic usage scenarios for StructureMap. This post will focus on slightly more advanced usage scenarios and how StructureMap handles them. For those playing the home game, I’m still working on the … Continue reading
StructureMap: Basic Scenario Usage
First, I’m going to assume that you are somewhat already familiar with the concepts of Dependency Injection and what, in general, an Inversion of Control Container is for. If not, you may find these links helpful: http://www.martinfowler.com/articles/injection.html http://codebetter.com/blogs/jeremy.miller/archive/2005/10/06/132825.aspx I’m … Continue reading

