Implemented plugin interface loading via di
1^
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace Moonlight.Client.Interfaces;
|
||||
|
||||
public interface IAppLoader
|
||||
{
|
||||
public int Priority { get; }
|
||||
public Task Load(IServiceProvider serviceProvider);
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Moonlight.Client.Interfaces;
|
||||
|
||||
public interface IAppScreen
|
||||
{
|
||||
public int Priority { get; }
|
||||
public Task<bool> ShouldRender(IServiceProvider serviceProvider);
|
||||
public RenderFragment Render();
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
|
||||
namespace Moonlight.Client.Interfaces;
|
||||
|
||||
public interface IAppStartup
|
||||
{
|
||||
public Task BuildApp(WebAssemblyHostBuilder builder);
|
||||
public Task ConfigureApp(WebAssemblyHost app);
|
||||
}
|
||||
9
Moonlight.Client/Interfaces/IPluginStartup.cs
Normal file
9
Moonlight.Client/Interfaces/IPluginStartup.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
|
||||
namespace Moonlight.Client.Interfaces;
|
||||
|
||||
public interface IPluginStartup
|
||||
{
|
||||
public Task BuildApplication(WebAssemblyHostBuilder builder);
|
||||
public Task ConfigureApplication(WebAssemblyHost app);
|
||||
}
|
||||
Reference in New Issue
Block a user