Always Injecting new Instance

Dec 29, 2006 at 1:00 PM

I have an ICustomerService abstraction and a concrete type CustomerService. For threading issues, I always want a new instance injected into my presenters. Does anyone know how I can accomplish this without specifying the concrete type in my presenter.
Dec 29, 2006 at 4:34 PM
I'm not sure I understand. The default behavior of ObjectBuilder, unless otherwise overridden by policy, is to always create new instances.

Do you have a small repro?
Jan 17, 2007 at 6:29 PM
I am using the object builder with the CAB block. So, when I register a service, it is always returning the same instance where ever I declare a dependency injection. If I went with using the CreateNew attribute, I would have to specify the concrete type everywhere I need that component. Does that make sense?