Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 结构图无法识别装配部件_C#_.net_Inversion Of Control_Structuremap - Fatal编程技术网

C# 结构图无法识别装配部件

C# 结构图无法识别装配部件,c#,.net,inversion-of-control,structuremap,C#,.net,Inversion Of Control,Structuremap,我是国际奥委会和结构图新手。当我试图调用callingAssembly()方法时,它无法识别它 谁来帮忙 ObjectFactory.Configure(x => { x.Scan(y => { // y.TheCallingAssembly(); y.LookForRegistries();

我是国际奥委会和结构图新手。当我试图调用callingAssembly()方法时,它无法识别它

谁来帮忙

ObjectFactory.Configure(x => 
            {
                x.Scan(y =>
                {
                   // y.TheCallingAssembly();
                    y.LookForRegistries();
                });
            });

在版本3中,它已移动到StructureMap.Graph命名空间

只需使用StructureMap.Graph将添加到项目中即可