开发者

Equivalent of Windsor Depends on in structureMap

开发者 https://www.devze.com 2023-04-02 20:08 出处:网络
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 a

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");
0

精彩评论

暂无评论...
验证码 换一张
取 消