开发者

Unity Container singleton based on parameters

开发者 https://www.devze.com 2023-03-12 19:47 出处:网络
is it possible in Microsoft Unity 2.0 container framework to create singletons based on certain parameters.

is it possible in Microsoft Unity 2.0 container framework to create singletons based on certain parameters.

I want to pass parameters to the constructor which is possible but I want the container 开发者_StackOverflow社区to give me a new instance if parameters are new or give me the same instance of parameters are same.

0

精彩评论

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