Does MS PnP Unity Scan for Assemblies Like StructureMap?

前端 未结 2 1474
离开以前
离开以前 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:04

    Registration by Convention was added in Unity 3.0. Nice examples of this feature are provided in "Developer's Guide to Dependency Injection Using Unity" in solution in samples named OtherUnitySamples. You can find the book here:

    http://msdn.microsoft.com/en-us/library/dn178463(v=pandp.30).aspx

    and code samples here:

    unity.codeplex.com/downloads/get/683531

提交回复
热议问题