How to use Castle.Windsor in an assembly loaded using reflection

前端 未结 3 2058
Happy的楠姐
Happy的楠姐 2021-01-07 00:26

Let\'s say I have a library Lib.dll, which uses Castle.Windsor to initialize its services.

I have a main application App.exe, which loads Lib.dll on runtime using re

3条回答
  •  自闭症患者
    2021-01-07 01:09

    You probably will consider loading the plugin in a separate AppDomain, with a different private path, look at AppDomainSetup. Of course there is a drawback that you neeed a separate app domain for your plugin, but sometimes this is considered a good practice.

提交回复
热议问题