StructureMap无法识别TheCallingAssembly

kay*_*yze 14 .net c# structuremap inversion-of-control

我是IOC和StructureMap的新手.当我试图调用TheCallingAssembly()方法时,它无法识别它.

有人请帮忙

ObjectFactory.Configure(x => 
            {
                x.Scan(y =>
                {
                   // y.TheCallingAssembly();
                    y.LookForRegistries();
                });
            });
Run Code Online (Sandbox Code Playgroud)

wec*_*hel 27

在版本3中,这已移至StructureMap.Graph命名空间.

只需使用StructureMap.Graph添加到您的项目中.