开发者

IoC: advantages of using a child container in web based app

I'm interested in knowing if t开发者_JS百科here are any advantages to creating a child container for each request in a web based application?

The tech stack I'm using includes StructureMap & ASP.NET MVC, which is not particularly relevant but included as background info.


Without a child container, the application container would otherwise be responsible for holding all instances created during the application's lifetime.

That is an enormous memory leak.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜