Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DI With Blazor components #67

Open
rfriend-zilo opened this issue Mar 14, 2023 · 0 comments
Open

DI With Blazor components #67

rfriend-zilo opened this issue Mar 14, 2023 · 0 comments

Comments

@rfriend-zilo
Copy link

To get routing to work with blazor server side - I have to add the loaded plugin assemblies to the router

<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="@_pluginAssemblies">

This then seems to render the loaded plugins fine, until I try to inject plugin services - I can inject things I declare directly in the host (such as config services, etc), but I cannot inject services I've created and set up in the plugin (using bootstrapper and PluginService, etc), it seems to tie the assembly to the host IServiceProvider.

Additionally, I noticed the MvcPluginLoader does not fire the activated method, so i did this manually using IPluginActivator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant