How to inject the Construtor Arguments dynamically in the structureMap Something like Windsor Dependson where i can Pass开发者_开发百科 all the Property[] to it.. Even AutoFac has Resolveparamter..
I am not well versed in either AutoFac or Windsor, but after looking at examples of each I think you're after this structure map construct for injecting parameters:
For<IMyType>.Use<MyType>.Ctor<string>("parameterName").Is("parameterValue");
精彩评论