Does MS PnP Unity Scan for Assemblies Like StructureMap?

前端 未结 2 1498
离开以前
离开以前 2021-01-24 05:07

In Using StructureMap 2.5 to scan all assemblies in a folder, we can see that StructureMap uses AssembliesFromPath() to explicitly look for types to resolve. What i

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 06:10

    The Assembly Matching Rule is used for applying interception to classes constructed by Unity and not for container registration. Unity itself does not have any convention-based scanning functionality like StructureMap. There is a CodePlex project that adds similar functionality to Unity though. http://autoregistration.codeplex.com/

提交回复
热议问题