Load plugin setting and IPluginFinder in DependencyRegistrar of plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 年 前
How can I load IPluginFinder and SettingService DependencyRegistrar file of Plugin.


I tried with, it throws
private readonly IPluginFinder _pluginFinder = EngineContext.Current.Resolve<IPluginFinder>();
error

I also use constructor but not get any luck.
5 年 前
Typically, in your plugin code, you use constructor dependency injection to access services.  But if that is a problem (e.g. circular dependency), you could just use

var _pluginFinder = EngineContext.Current.Resolve<IPluginFinder>();

just before you use the _pluginFinder variable.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.