Using “No touch” Host Configuration in Plugins

Hi Mythz,

I’m guessing the answer is it’s not supported. However, can “No touch” Host Configuration be used with Plugins?

I’d like to wrap a Service in a IPlugin and then use IConfigureAppHost and friends to register db connections etc.

Thanks,
Deon

No, Plugins should only run if they’re registered but the “no touch” configuration classes that are found in the AppHost Assembly are always run. So wouldn’t be possible to run a Plugins IConfigureAppHost as it’s called before plugins are registered.

Maybe you could run any registrations in IPreInitPlugin which are run before plugins are loaded.