开发者

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..


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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜