Switched to SimplePlugin plugin loader

This commit is contained in:
2026-02-18 13:21:15 +01:00
parent 816aa01319
commit 1fc33ebf03
12 changed files with 36 additions and 37 deletions

View File

@@ -26,6 +26,7 @@
<PackageReference Include="Riok.Mapperly" Version="4.3.1-next.0"/>
<PackageReference Include="ShadcnBlazor" Version="1.0.11" />
<PackageReference Include="ShadcnBlazor.Extras" Version="1.0.11" />
<PackageReference Include="SimplePlugin.Abstractions" Version="1.0.2" />
</ItemGroup>
<ItemGroup>

View File

@@ -1,8 +1,9 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using SimplePlugin.Abstractions;
namespace Moonlight.Frontend.Startup;
public interface IAppStartup
public interface IAppStartup : IPluginModule
{
public void PreBuild(WebAssemblyHostBuilder builder);
public void PostBuild(WebAssemblyHost application);

View File

@@ -1,7 +1,9 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using SimplePlugin.Abstractions;
namespace Moonlight.Frontend.Startup;
[PluginModule]
public partial class Startup : IAppStartup
{
public void PreBuild(WebAssemblyHostBuilder builder)