开发者

structuremap objectfactory life time

开发者 https://www.devze.com 2023-01-08 16:51 出处:网络
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.

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

精彩评论

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