Electron.App.IsReady returns false, but the ASP.NET Core app is only launched after the app.ready event fires. #656

Open
opened 2026-01-29 16:45:18 +00:00 by claunia · 0 comments
Owner

Originally created by @The-MAZZTer on GitHub (Apr 15, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
  • 9.31.2 (latest version compatible with .NET Core 3.1)

.NET Core 3.1

  • Target:
    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.

Originally created by @The-MAZZTer on GitHub (Apr 15, 2021). Originally assigned to: @GregorBiswanger on GitHub. * **Version**: * 9.31.2 (latest version compatible with .NET Core 3.1) .NET Core 3.1 * **Target**: 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.
claunia added the bug label 2026-01-29 16:45:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#656