开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜