mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-03 14:30:15 +00:00
Add manual initialization methods
This commit is contained in:
@@ -396,6 +396,7 @@ namespace ElectronNET.API
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isReady = false;
|
||||
|
||||
/// <summary>
|
||||
@@ -537,6 +538,11 @@ namespace ElectronNET.API
|
||||
}
|
||||
}
|
||||
|
||||
public static void ManuallySetIsReady()
|
||||
{
|
||||
Instance.IsReady = true;
|
||||
}
|
||||
|
||||
private static App _app;
|
||||
private static object _syncRoot = new object();
|
||||
|
||||
|
||||
@@ -20,5 +20,11 @@
|
||||
/// The web port.
|
||||
/// </value>
|
||||
public static string WebPort { get; internal set; }
|
||||
|
||||
public static void InitializePorts(int socketPort, int webPort)
|
||||
{
|
||||
SocketPort = socketPort.ToString();
|
||||
WebPort = webPort.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user