Does MS PnP Unity check for assemblies like StructureMap?

In Using StructureMap 2.5 to scan all assemblies in a folder , we see that StructureMap uses AssembliesFromPath() to explicitly look for types to allow. What is equivalent to this in Microsoft Unity? Since Unity is such a general term, finding documents about it online is not so simple.

Update: Unity has something called the Build Compliance Rule , but its description does not tell me that it scans folders.

+1
ioc-container unity-container structuremap
source share
2 answers

An assembly matching rule is used to apply interception to classes built by Unity, and not to register a container. Unity itself does not have any conditional scan functions such as StructureMap. There is a CodePlex project that adds similar Unity functionality. http://autoregistration.codeplex.com/

+3
source share

Registration under the Convention has been added to Unity 3.0. Pleasant examples of this feature are given in the Developer's Guide for Dependency Injection Using Unity in a 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 examples here:

unity.codeplex.com/downloads/get/683531

+1
source share

All Articles