views:

51

answers:

1

Hi, i've been using structuremap since a couple of months. I always use ObjectFactory.GetInstance to take the right instance of the object 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?

A: 

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

Andrew Bullock