diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-02-03 11:14:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-02-03 11:14:36 +0200 |
| commit | 45d08b7846ca7c31c2d6fdf07c4d0012d17855ea (patch) | |
| tree | 027c76fbad2424dbff063f8ca81654b5c55c87d6 /Software/Visual_Studio/Tango.Integration/ExternalBridge | |
| parent | 9aa45ed8258c7b5200cba90d94cc049cf59dc78d (diff) | |
| download | Tango-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.cs | 11 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs | 16 |
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."); + } } } |
