aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/ExternalBridge
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-02-03 11:14:36 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-02-03 11:14:36 +0200
commit45d08b7846ca7c31c2d6fdf07c4d0012d17855ea (patch)
tree027c76fbad2424dbff063f8ca81654b5c55c87d6 /Software/Visual_Studio/Tango.Integration/ExternalBridge
parent9aa45ed8258c7b5200cba90d94cc049cf59dc78d (diff)
downloadTango-45d08b7846ca7c31c2d6fdf07c4d0012d17855ea.tar.gz
Tango-45d08b7846ca7c31c2d6fdf07c4d0012d17855ea.zip
Critical Fix for Japan.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/ExternalBridge')
-rw-r--r--Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeSignalRClient.cs11
-rw-r--r--Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs16
2 files changed, 25 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeSignalRClient.cs b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeSignalRClient.cs
index a8f01437c..e2c4a5717 100644
--- a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeSignalRClient.cs
+++ b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeSignalRClient.cs
@@ -91,7 +91,16 @@ namespace Tango.Integration.ExternalBridge
}
catch (Exception ex)
{
- LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version.");
+ if (ForceProtocolConfiguration)
+ {
+ LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version. (forcing protocol configuration)");
+ Adapter.EnableCompression = protocol.EnableCompression;
+ GenericProtocol = protocol.GenericProtocol;
+ }
+ else
+ {
+ LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version.");
+ }
}
}
diff --git a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
index 0b2a0c608..d13b4f133 100644
--- a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
+++ b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
@@ -91,6 +91,11 @@ namespace Tango.Integration.ExternalBridge
/// </summary>
public ConfigureProtocolRequest ConfigureProtocolRequest { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating to apply the <see cref="ConfigureProtocolRequest"/> even if there is an error with the request.
+ /// </summary>
+ public bool ForceProtocolConfiguration { get; set; }
+
private ApplicationInformation _applicationInformation;
/// <summary>
/// Gets or sets the remote application information (PPC).
@@ -164,7 +169,16 @@ namespace Tango.Integration.ExternalBridge
}
catch (Exception ex)
{
- LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version.");
+ if (ForceProtocolConfiguration)
+ {
+ LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version. (forcing protocol configuration)");
+ Adapter.EnableCompression = protocol.EnableCompression;
+ GenericProtocol = protocol.GenericProtocol;
+ }
+ else
+ {
+ LogManager.Log(ex, $"{ComponentName}: Could not configure remote machine protocol. Could be an old PPC version.");
+ }
}
}