Cleaned up the startup sequence.
This commit is contained in:
7
Moonlight.ApiServer/Interfaces/Startup/IAppStartup.cs
Normal file
7
Moonlight.ApiServer/Interfaces/Startup/IAppStartup.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IAppStartup
|
||||
{
|
||||
public Task BuildApp(IHostApplicationBuilder builder);
|
||||
public Task ConfigureApp(IApplicationBuilder app);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Moonlight.ApiServer.Helpers;
|
||||
using Moonlight.ApiServer.Models;
|
||||
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IDatabaseStartup
|
||||
{
|
||||
public Task ConfigureDatabase(DatabaseContextCollection collection);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Moonlight.ApiServer.Interfaces.Startup;
|
||||
|
||||
public interface IEndpointStartup
|
||||
{
|
||||
public Task ConfigureEndpoints(IEndpointRouteBuilder routeBuilder);
|
||||
}
|
||||
Reference in New Issue
Block a user