20 lines
506 B
C#
20 lines
506 B
C#
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using Moonlight.Client.Runtime;
|
|
using Moonlight.Client.Startup;
|
|
|
|
var pluginLoader = new PluginLoader();
|
|
pluginLoader.Initialize();
|
|
|
|
var startup = new Startup();
|
|
|
|
await startup.InitializeAsync(pluginLoader.Instances);
|
|
|
|
var wasmHostBuilder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
await startup.AddMoonlightAsync(wasmHostBuilder);
|
|
|
|
var wasmApp = wasmHostBuilder.Build();
|
|
|
|
await startup.AddMoonlightAsync(wasmApp);
|
|
|
|
await wasmApp.RunAsync(); |