unity container - UnityBootstrapper RegisterTypesIfMissing when types reside in assemblies that are not refrenced -


i struggling register concrete implementation of an interface in prism application when assembly contains implementing type not referenced. fine if can done through configuration.

consider code:

registertypeifmissing(typeof(ihostdata), not_referenced_assembly_type, true); 

i recommend @ unity's registration convention ability. specifically, allclasses helper allows locate types within assembly or many assemblies register. use reflection load assembly , pass helper, or use allclasses.fromassembliesinbasepath method have unity load assembly you. take @ how runtime locates assemblies.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -