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
Post a Comment