mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Electron.App.IsReady returns false, but the ASP.NET Core app is only launched after the app.ready event fires. #656
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @The-MAZZTer on GitHub (Apr 15, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
.NET Core 3.1
Windows
It looks like electron host's main.js only launches the ASP.NET Core application once the app.ready event fires. However in my Startup class constructor, Electron.App.IsReady returns false. I suspect this is simply because the IO bridge between electron host and ElectronNET classes isn't connected yet, but given electron is already ready, isReady shouldn't ever really be false.
Unless IsReady is meant to reflect the state of the IO bridge. But then it could easily mislead devs who think it is a reflection of app.ready. For example, trying to set the UserData path won't work since electron is already using the old path by the time the ASP.NET Core application launches.