Refactored startup. Updated usings. Removed dockerignore
This commit is contained in:
@@ -1,9 +1,28 @@
|
||||
using Moonlight.ApiServer;
|
||||
using Moonlight.ApiServer.Runtime;
|
||||
|
||||
var startup = new Startup();
|
||||
|
||||
var pluginLoader = new PluginLoader();
|
||||
pluginLoader.Initialize();
|
||||
/*
|
||||
await startup.Run(args, pluginLoader.Instances);
|
||||
|
||||
await startup.Run(args, pluginLoader.Instances);
|
||||
*/
|
||||
|
||||
var cs = new CleanStartup();
|
||||
|
||||
var builder = WebApplication.CreateBuilder();
|
||||
|
||||
await cs.AddMoonlight(builder, args, pluginLoader.Instances);
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
await cs.AddMoonlight(app, args, pluginLoader.Instances);
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
app.UseWebAssemblyDebugging();
|
||||
|
||||
app.UseBlazorFrameworkFiles();
|
||||
app.UseStaticFiles();
|
||||
|
||||
|
||||
await app.RunAsync();
|
||||
Reference in New Issue
Block a user