autofac scope around a resolved instance
问题 I'm somewhat new to autofac, but have already used it successfully with different "simple" configurations. Now I'm trying something more complex and struggle with working this out. Essentially, I have an entry point where all autofac configuration is done and the first objects are resolved, which themselves get dependencies by constructor injection, their dependencies can have other dependencies and so on. Some code: public class Root { public Root(A.Factory factory) { for (int i = 0; i < 3;i