Los Techies : Blogs about software and anything tech!
Sign in
|
Join
|
Help
Home
Merchandise
Blogs
Media
Groups
RSS
Twitter
Jimmy Bogard
»
All Tags
»
StructureMap
(
RSS
)
Browse by Tags
Jimmy Bogard
Home
Contact
The Lounge
Ads by The Lounge
Friends of Pablo
Pablo's Extended Family
Syndication
RSS for Posts
Atom
RSS for Comments
Recent Posts
Advanced StructureMap: Diagnosing problems
Advanced StructureMap: custom registration conventions for partially closed types
Advanced StructureMap: connecting implementations to open generic types
How not to do Dependency Injection, in NerdDinner
Hail to the king, baby!
Tags
Agile
ASP.NET
ASP.NET MVC
AutoMapper
BDD
Behave#
Behavior-Driven Development
C#
Design
Domain-Driven Design
Legacy Code
LINQ
LINQ to SQL
Misc
NHibernate
Patterns
Rant
Refactoring
StructureMap
TDD
Team Build
Testing
Tools
VSTS
WCF
View more
News
Archives
March 2010 (2)
February 2010 (4)
January 2010 (9)
December 2009 (9)
November 2009 (5)
October 2009 (8)
September 2009 (8)
August 2009 (8)
July 2009 (11)
June 2009 (10)
May 2009 (11)
April 2009 (10)
March 2009 (9)
February 2009 (12)
January 2009 (10)
December 2008 (8)
November 2008 (14)
October 2008 (11)
September 2008 (10)
August 2008 (11)
July 2008 (12)
June 2008 (11)
May 2008 (15)
April 2008 (10)
March 2008 (15)
February 2008 (13)
January 2008 (19)
December 2007 (9)
November 2007 (17)
October 2007 (23)
September 2007 (10)
August 2007 (11)
July 2007 (11)
June 2007 (9)
May 2007 (14)
April 2007 (7)
ASP.NET MVC
NHibernate
Refactoring
Tools
WCF
Advanced StructureMap: Diagnosing problems
So you’ve set up StructureMap, got all your registries in a row, go to run the application, and you’re greeted by a rather unfortunate message: StructureMap.StructureMapException : StructureMap Exception Code: 202 No Default Instance defined for PluginFamily...
Published
Thu, Jan 01 2010 11:21 PM
by
bogardj
Filed under:
StructureMap
Advanced StructureMap: custom registration conventions for partially closed types
A while back, I highlighted an issue we ran into where I had basically partially closed generic types . A common pattern in message- and command-based architectures is the concept of a handler for a message: public interface IHandler <TEvent>...
Published
Thu, Jan 01 2010 11:59 AM
by
bogardj
Filed under:
StructureMap
Advanced StructureMap: connecting implementations to open generic types
One pattern we’re starting to see more and more is the idea of connecting messages to handlers. These messages might be domain command messages, ActionResult messages , and more. Beyond messaging implementations, we start to see a more basic...
Published
Thu, Dec 12 2009 11:03 PM
by
bogardj
Filed under:
StructureMap
How not to do Dependency Injection, in NerdDinner
Checking out the NerdDinner code the other day, I found a common Dependency Injection anti-pattern. One of the core concepts of DI is that components are not responsible for locating their own dependencies. The code went part of the way to...
Published
Fri, Jul 07 2009 12:19 PM
by
bogardj
Filed under:
Refactoring
,
ASP.NET MVC
,
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 some friendly banter...
Published
Mon, Oct 10 2008 6:36 AM
by
bogardj
Filed under:
StructureMap
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...
Published
Tue, Sep 09 2008 3:47 PM
by
bogardj
Filed under:
WCF
,
StructureMap
,
NHibernate
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, StructureMap (Jeremy Miller...
Published
Fri, Sep 09 2008 8:10 AM
by
bogardj
Filed under:
StructureMap
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...
Published
Wed, Sep 09 2008 8:08 AM
by
bogardj
Filed under:
StructureMap
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...
Published
Tue, Jul 07 2008 10:44 PM
by
bogardj
Filed under:
Tools
,
WCF
,
StructureMap
Copyright Los Techies 2008, 2009. All rights reserved.