aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-09-03 16:18:55 +0300
committerRoy <Roy.mail.net@gmail.com>2023-09-03 16:18:55 +0300
commitc66acc359b311ecc940f3c4e74bd9e21dc0bfd51 (patch)
tree8869b9d48fbad776c94df401680afc43fc350e69 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
parent6cdea71fa07d092139697d9c67651dade37aed96 (diff)
parentb271fe1c21172ed22a34b987a2cb9457b39ce8a3 (diff)
downloadTango-c66acc359b311ecc940f3c4e74bd9e21dc0bfd51.tar.gz
Tango-c66acc359b311ecc940f3c4e74bd9e21dc0bfd51.zip
Merged Eureka Branch !!!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
index 45fd6c1b8..0d64da83e 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
@@ -32,6 +32,7 @@ using Tango.SharedUI.Helpers;
using Tango.SQLExaminer;
using Tango.Transport.Web;
using System.Data.Entity;
+using Tango.PPC.Common.Build;
namespace Tango.PPC.Common.MachineSetup
{
@@ -45,6 +46,7 @@ namespace Tango.PPC.Common.MachineSetup
private IRemoteAssistanceProvider _remoteAssistance;
private IUnifiedWriteFilterManager _uwf;
private IOperationSystemManager _windows_manager;
+ private IBuildProvider _buildProvider;
private PPCWebClient _client;
private List<LogItemBase> _logs;
private bool _isUpdating;
@@ -81,12 +83,13 @@ namespace Tango.PPC.Common.MachineSetup
/// Initializes a new instance of the <see cref="MachineSetupManager"/> class.
/// </summary>
/// <param name="remoteAssistance">The remote assistance.</param>
- public MachineSetupManager(PPCWebClient ppcWebClient, IRemoteAssistanceProvider remoteAssistance, IUnifiedWriteFilterManager unifiedWriterFilterManager, IOperationSystemManager operationSystemManager)
+ public MachineSetupManager(PPCWebClient ppcWebClient, IRemoteAssistanceProvider remoteAssistance, IUnifiedWriteFilterManager unifiedWriterFilterManager, IOperationSystemManager operationSystemManager, IBuildProvider buildProvider)
{
_client = ppcWebClient;
_remoteAssistance = remoteAssistance;
_uwf = unifiedWriterFilterManager;
_windows_manager = operationSystemManager;
+ _buildProvider = buildProvider;
_logs = new List<LogItemBase>();
LogManager.NewLog += LogManager_NewLog;
@@ -235,7 +238,7 @@ namespace Tango.PPC.Common.MachineSetup
Login(serialNumber).Wait();
- String deviceName = $"Tango-{serialNumber}-{settings.DeploymentSlot.ToString()}";
+ String deviceName = $"{(_buildProvider.BuildType == BuildType.TS1800 ? "PPC" : "TwineX4")}{serialNumber}{settings.DeploymentSlot.ToString()}";
LogManager.Log($"Settings device name: '{deviceName}'...");
try
{
@@ -254,6 +257,13 @@ namespace Tango.PPC.Common.MachineSetup
{
LogManager.Log($"Sending setup request...\n{request.ToJsonString()}");
setup_response = await _client.MachineSetup(request);
+
+ if (_buildProvider.IsEureka)
+ {
+ setup_response.SetupActivation = false;
+ setup_response.SetupUWF = false;
+ setup_response.SetupRemoteAssistance = false;
+ }
}
catch (Exception ex)
{