Add ability to inject IPluginConfig<T>
busheezy opened this issue · comments
BuSheeZy commented
It would be great to be able to inject our config into different services.
Michael Wilson commented
This is difficult due to the nature of the OnConfigParsed
method which sets an instance of config onto the base plugin after instantation, which occurs much later than service collection creation. We can put the type T
from IPluginConfig<T>
in the container, but it will not have any modifications that are processed by OnConfigParsed
. How does that solution fare?
Frederik St-Onge commented
This would be solved in #400 if we go ahead with the solution.
Let me know what you think.