Add manual initialization methods

This commit is contained in:
rafael-aero
2021-07-12 15:52:30 +02:00
parent 6dee08379c
commit 83fd5a5d4b
2 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();
}
}
}