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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -