Upgraded mooncore. Done required refactoring to function with new version
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.9"/>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.9" PrivateAssets="all"/>
|
||||
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.8" />
|
||||
<PackageReference Include="MoonCore.PluginFramework.Generator" Version="1.0.2" />
|
||||
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.9" />
|
||||
<PackageReference Include="MoonCore.PluginFramework.Generator" Version="1.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -5,16 +5,12 @@ using MoonlightServers.Frontend.Runtime;
|
||||
var pluginLoader = new DevPluginLoader();
|
||||
pluginLoader.Initialize();
|
||||
|
||||
var startup = new Startup();
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
|
||||
await startup.InitializeAsync(pluginLoader.Instances);
|
||||
builder.AddMoonlight(pluginLoader.Instances);
|
||||
|
||||
var wasmHostBuilder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
var app = builder.Build();
|
||||
|
||||
await startup.AddMoonlightAsync(wasmHostBuilder);
|
||||
app.ConfigureMoonlight(pluginLoader.Instances);
|
||||
|
||||
var wasmApp = wasmHostBuilder.Build();
|
||||
|
||||
await startup.AddMoonlightAsync(wasmApp);
|
||||
|
||||
await wasmApp.RunAsync();
|
||||
await app.RunAsync();
|
||||
Reference in New Issue
Block a user