开发者

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

开发者 https://www.devze.com 2023-01-02 09:57 出处:网络
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?

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

精彩评论

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