I am totally new to Structuremap and am confused on how to wire an interface that has multiple implementations.
Lets say I have Controller1
and Controller2
. I have Interface1
that is implemented by two separate classes, Class1ForInterface1
and Class2ForInterface1
. In Controller1
I want Class1ForInterFace1
injected and in Controller2
I want Class2ForInterface1
injected.
How do I wire this with structuremap? It seems that I can only have one mapping of Interface to concrete type?
Thanks!