2017-10-06 05:04:56 +02:00
|
|
|
|
namespace ElectronNET.API
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2017-10-06 05:04:56 +02:00
|
|
|
|
public static class BridgeSettings
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the socket port.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The socket port.
|
|
|
|
|
|
/// </value>
|
|
|
|
|
|
public static string SocketPort { get; internal set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the web port.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The web port.
|
|
|
|
|
|
/// </value>
|
|
|
|
|
|
public static string WebPort { get; internal set; }
|
2021-07-12 15:52:30 +02:00
|
|
|
|
|
2021-07-12 15:54:23 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Manually set the port values instead of using the UseElectron extension method
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="socketPort"></param>
|
|
|
|
|
|
/// <param name="webPort"></param>
|
2021-07-12 15:52:30 +02:00
|
|
|
|
public static void InitializePorts(int socketPort, int webPort)
|
|
|
|
|
|
{
|
|
|
|
|
|
SocketPort = socketPort.ToString();
|
|
|
|
|
|
WebPort = webPort.ToString();
|
|
|
|
|
|
}
|
2017-10-06 05:04:56 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|