Implemented plugin loading via di on the api server. Fixed plugin loading in the client
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IAppStartup
|
||||
{
|
||||
public Task BuildApp(IHostApplicationBuilder builder);
|
||||
public Task ConfigureApp(IApplicationBuilder app);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
using Moonlight.ApiServer.Helpers;
|
||||
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IDatabaseStartup
|
||||
{
|
||||
public Task ConfigureDatabase(DatabaseContextCollection collection);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IEndpointStartup
|
||||
{
|
||||
public Task ConfigureEndpoints(IEndpointRouteBuilder routeBuilder);
|
||||
}
|
||||
11
Moonlight.ApiServer/Interfaces/Startup/IPluginStartup.cs
Normal file
11
Moonlight.ApiServer/Interfaces/Startup/IPluginStartup.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Moonlight.ApiServer.Helpers;
|
||||
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IPluginStartup
|
||||
{
|
||||
public Task BuildApplication(IHostApplicationBuilder builder);
|
||||
public Task ConfigureApplication(IApplicationBuilder app);
|
||||
public Task ConfigureDatabase(DatabaseContextCollection collection);
|
||||
public Task ConfigureEndpoints(IEndpointRouteBuilder routeBuilder);
|
||||
}
|
||||
Reference in New Issue
Block a user