zcz527 / autofac

Automatically exported from code.google.com/p/autofac
Other
0 stars 0 forks source link

Direct construction of Core.Container excludes default modules but this is not obvious #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When Container is constructed directly rather than via ContainerBuilder, the 
default modules for IEnumerable/Lazy/Meta/Func etc are not registered. This 
isn't obvious, but exists as a way to avoid those modules if for some reason 
one needs to be excluded.

To maintain this ability but avoid the common pitfall of using the constructor 
directly, we can make the constructor protected.

Original issue reported on code.google.com by nicholas...@gmail.com on 17 Jul 2010 at 7:10

GoogleCodeExporter commented 8 years ago
In r233. Used internal rather than protected.

Original comment by nicholas...@gmail.com on 18 Jul 2010 at 10:59