I wish to specify a concrete type (MyType1) to be instantiated with a specific func
passed into the constructor.
The constructor is:
public MyTYpe1(Func<Type1, Type2> myFunc)
{
//...
}
How can I specify the myFunc
param in a StructureMap XML configuration file?
Note, I wish to pass into myFunc
a static method on another type (MyType2.MyMethod). If I were to construct MyType1 in code it'd be:
var instance = new MyType1(MyType2.MyMethod);