diff --git a/ElectronNET.API/Electron.Experimental.cs b/ElectronNET.API/Electron.Experimental.cs index 4bc6763..1ddd21c 100644 --- a/ElectronNET.API/Electron.Experimental.cs +++ b/ElectronNET.API/Electron.Experimental.cs @@ -24,7 +24,7 @@ namespace ElectronNET.API /// /// /// - public static async Task StartElectronForDevelopment(int webPort, string projectPath = null, string[] extraElectronArguments = null, bool clearCache = false) + public static async Task StartElectronForDevelopment(int webPort, string projectPath = null, string[] extraElectronArguments = null, bool clearCache = false) { string aspCoreProjectPath; @@ -123,6 +123,8 @@ namespace ElectronNET.API BridgeSettings.InitializePorts(socketPort, webPort); await Task.Delay(500); + + return socketPort; } ///