mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-09 02:07:47 +00:00
22 lines
458 B
Plaintext
22 lines
458 B
Plaintext
using ElectronNET.API;
|
|
using ElectronNET.AspNet.Hubs;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services.AddElectron();
|
|
|
|
// Configure Electron.NET with SignalR mode
|
|
builder.WebHost.UseElectron(args, async () =>
|
|
{
|
|
Console.WriteLine("[TEST] App ready callback started");
|
|
});
|
|
|
|
var app = builder.Build();
|
|
|
|
// Absolute minimal setup
|
|
app.MapHub<ElectronHub>("/electron-hub");
|
|
|
|
Console.WriteLine("[TEST] Application starting...");
|
|
|
|
app.Run();
|