Hi, I encountered following problem: I have: 1) interface IA 2) class A : IA 3) class A1 : A with prop int X and ctor(int x) 4) class A2 : A with prop string X and ctor(string x)
I register them in container in following way:
cont.AddComponentLifeStyle<IA, A1>(LifestyleType.Transient);
cont.AddComponentLifeStyle<IA, A2>(LifestyleType.Transient);
cont.AddComponentLifeStyle<A, A1>("a1", LifestyleType.Transient);
cont.AddComponentLifeStyle<A, A2>("a2", LifestyleType.Transient);
Now i want to resolve A, basing on type which I supply to ctor, so I
want the following code to work:
A a1 = cont.Resolve<A> (new {x = 1});
A a2 = cont.Resolve<A>(new { x = "xxx" });
However I get ConverException.
Is there a way to get this functionality to work in Windsor?
smime.p7s
Description: S/MIME Cryptographic Signature
