structuremap objectfactory life time
i've been using structuremap since a couple of months. I always use ObjectFactory.GetInstance to take the right instance of the 开发者_如何学Cobject i've to use.
Actually, i need to understand which is the default ObjectFactory's InstanceScope. Is it ThreadLocal?
do u know where i can read about it?
first result on google for "structuremap lifecycle":
http://structuremap.github.com/structuremap/Scoping.htm
"PerRequest" is the default lifecycle if you didnt specify one in your registry
精彩评论