开发者

Does autofac initialize all registered components at app bootrap?

开发者 https://www.devze.com 2023-02-18 04:44 出处:网络
I just registered some components with builder, and I want to know whether all components initialize during application startup time? 开发者_运维问答If so the app bootstrap may take more longer. But I

I just registered some components with builder, and I want to know whether all components initialize during application startup time? 开发者_运维问答If so the app bootstrap may take more longer. But I see in spring.net IOC, it has an attribute of "lazy-ini" to allow target components to be initialized at first time user requesting a page. Can somebody tell me how autofac dealing with this? Much appreciate for your answers.


By default, it does not construct any registered types when building the container.

0

精彩评论

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

关注公众号