satish
satish

Reputation: 2441

Equivalent of Windsor Depends on in structureMap

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

Answers (1)

PHeiberg
PHeiberg

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

Related Questions