Reputation: 2441
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..
Upvotes: 1
Views: 159
Reputation: 29811
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");
Upvotes: 2