Skip to content

DI With Blazor components #67

@rfriend-zilo

Description

@rfriend-zilo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions