Firstly...
In my plugin, in DependencyRegistrar.Register, I need access to the SettingsService to retrieve a couple of configuration values to then pass into the constructor of a dependency I'm registering, for example:
builder.Register(d => new MyClass(configValue1, configValue2)).InstancePerLifetimeScope();
Where configValue1 and configValue2 would be values stored in the nop Settings table (and thus retrived via the SettingsService).
Secondly...
My plugin has its own database tables. Another dependency that I need to register will need some values from these tables supplied in its constructor. Is it possible in DependencyRegistrar.Register to get access to my plugin's own DbContext or IRepository objects to query these plugin specific tables.
Thanks,
Kevin