|
@@ -863,6 +863,16 @@ namespace InABox.Clients
|
|
public string Version { get; set; }
|
|
public string Version { get; set; }
|
|
|
|
|
|
public bool IsHTTPS { get; set; }
|
|
public bool IsHTTPS { get; set; }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // Ideally, we should not need these. However, there is currently a bug in RPCServer
|
|
|
|
+ // that crashes the server when uploading large files (ie photos)
|
|
|
|
+ // So we need to be a able to maintain both a Rest and RPC-style connection
|
|
|
|
+ // to the server to try and have both session (RPC) capabilities
|
|
|
|
+ // as well as having stable upload performance :-(
|
|
|
|
+ // Once the RPC listeners are stable, then this needs to be removed.
|
|
|
|
+ public int RestPort { get; set; }
|
|
|
|
+ public int RPCPort { get; set; }
|
|
|
|
|
|
[JsonConstructor]
|
|
[JsonConstructor]
|
|
public DatabaseInfo()
|
|
public DatabaseInfo()
|
|
@@ -870,12 +880,14 @@ namespace InABox.Clients
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public DatabaseInfo(string? colorScheme, byte[]? logo, string version, bool isHTTTPS)
|
|
|
|
|
|
+ public DatabaseInfo(string? colorScheme, byte[]? logo, string version, bool isHTTTPS, int restPort, int rpcPort)
|
|
{
|
|
{
|
|
ColorScheme = colorScheme;
|
|
ColorScheme = colorScheme;
|
|
Logo = logo;
|
|
Logo = logo;
|
|
Version = version;
|
|
Version = version;
|
|
IsHTTPS = isHTTTPS;
|
|
IsHTTPS = isHTTTPS;
|
|
|
|
+ RestPort = restPort;
|
|
|
|
+ RPCPort = rpcPort;
|
|
}
|
|
}
|
|
|
|
|
|
public void SerializeBinary(CoreBinaryWriter writer)
|
|
public void SerializeBinary(CoreBinaryWriter writer)
|
|
@@ -894,6 +906,8 @@ namespace InABox.Clients
|
|
|
|
|
|
writer.Write(Version);
|
|
writer.Write(Version);
|
|
writer.Write(IsHTTPS);
|
|
writer.Write(IsHTTPS);
|
|
|
|
+ writer.Write(RestPort);
|
|
|
|
+ writer.Write(RPCPort);
|
|
}
|
|
}
|
|
public void DeserializeBinary(CoreBinaryReader reader)
|
|
public void DeserializeBinary(CoreBinaryReader reader)
|
|
{
|
|
{
|
|
@@ -904,6 +918,8 @@ namespace InABox.Clients
|
|
|
|
|
|
Version = reader.ReadString();
|
|
Version = reader.ReadString();
|
|
IsHTTPS = reader.ReadBoolean();
|
|
IsHTTPS = reader.ReadBoolean();
|
|
|
|
+ RestPort = reader.ReadInt32();
|
|
|
|
+ RPCPort = reader.ReadInt32();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|