StructureMap 'For().Use()' vs 'For().Add()'
If you there's only *one* instance registered against a type, StructureMap goes ahead and assumes that that one is the default.
Use() == the default. "Anonymous" in some other container's lingo
Add() == named instance (it gets a Guid for the name if you don't set it yourself)..
Jeremy D. Miller
The Shade Tree Developer
jeremydmil...@yahoo.com
No comments:
Post a Comment