What happened to Lazy support in Autofac?

后端 未结 1 1720
南笙
南笙 2020-12-19 04:07

In beta builds of Autofac 2.1 there was support for automatic resolution of Lazy as described in Nicholas Blumhardt\'s Lazing Around with Autofac blog

1条回答
  •  眼角桃花
    2020-12-19 04:40

    You don't need to register LazyDependencyModule yourself in the production Autofac 2 builds. It is a part of the default container, so just register T and Lazy will be provided.

    Make sure you're not accidentally using a .NET 3.5 binary, too :)

    Nick

    0 讨论(0)
提交回复
热议问题