Hi,
I want to register a specific instance of an object for a type in structuremap, how can I do that?
For example,
When I do:
var myObj = ObjectFactory.GetInstance(typeof(MyAbstractClass));
i would like it to return a previously constructed concrete class, which i created like this:
var myClass = new MyConcreteClass("bla"); // MyConcreteClass : MyAbstractClass
so
myObj == myClass
How do i register myClass with structuremap to facilitate this?
Thanks
Andrew