Ok, thank you for your help
I'll try 1st to register twice and if I don't succeed I'll switch to the
factory way
2013/7/15 Krzysztof Kozmic krzysztof.koz...@gmail.com
1. yes, component != type. You register the type twice.
2. you don't need two Components for repository. If it's lifetime is
1. yes, component != type. You register the type twice.
2. you don't need two Components for repository. If it's lifetime is transient
(or any safe subset of the two lifestyles of your DAL components) you'll just
have two instances of a single component.
3. if not, then having a factory may be
Sorry for late answer, I took a few days off.
So you say 2 components for dal how could I do that ? I can't duplicate
the code.
Or can I register the same class twice ?
But anyway the case above is the simplest one
I've another case where W(CF Service) use a R(epository) which use the
D(AL)
1. Have two components for DAL (one as 'per WCF operation' the other transient
or whatever makes sense)
2. Use Service Overrides to provide the right one where needed.
3. Profit!
--
Krzysztof Kozmic
On Wednesday, 3 July 2013 at 12:53 AM, Fabrice wrote:
Hi all,
I've a small problem and