【问题标题】:StructureMap not recognising TheCallingAssemblyStructureMap 无法识别 TheCallingAssembly
【发布时间】:2014-04-19 04:19:17
【问题描述】:

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

请大家帮忙

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

【问题讨论】:

    标签: c# .net inversion-of-control structuremap


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-11
      • 1970-01-01
      • 1970-01-01
      • 2018-06-18
      • 2013-04-19
      • 2019-01-28
      • 2017-08-10
      • 2019-11-01
      相关资源
      最近更新 更多