From 7171e1a3b7579420f2060798c649088d70565401 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 30 Aug 2018 12:35:00 +0300 Subject: Implemented In-Memory Transport Adapter. Implemented Embedded In-Memory Emulator. --- .../EventLogging/DefaultEventLogger.cs | 2 +- .../Tango.MachineStudio.Common/MachineStudioSettings.cs | 14 ++++++++++++++ .../StudioApplication/IStudioApplicationManager.cs | 14 +++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs index cb4611cad..3663eb093 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs @@ -220,7 +220,7 @@ namespace Tango.MachineStudio.Common.EventLogging } LogManager.Log("Logging event " + machineEvent.EventType.Name + " - " + machineEvent.Description); - machineEvent.MachineGuid = _application.ConnectedMachine.Machine.Guid; + machineEvent.MachineGuid = _application.Machine.Guid; machineEvent.UserGuid = _authentication.CurrentUser.Guid; machineEvent.User = _authentication.CurrentUser; _events.Enqueue(machineEvent); diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/MachineStudioSettings.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/MachineStudioSettings.cs index 706f82774..f54611d9c 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/MachineStudioSettings.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/MachineStudioSettings.cs @@ -46,12 +46,26 @@ namespace Tango.MachineStudio.Common /// public Rect LastBounds { get; set; } + /// + /// Gets or sets the default issue report assign to. + /// public String DefaultIssueReportAssignTo { get; set; } + /// + /// Gets or sets the default issue report area. + /// public String DefaultIssueReportArea { get; set; } + /// + /// Gets or sets the default issue report tags. + /// public List DefaultIssueReportTags { get; set; } + /// + /// Gets or sets a value indicating whether add external bridge client emulator when scanning for connected machines. + /// + public bool UseExternalBridgeEmulator { get; set; } + /// /// Initializes a new instance of the class. /// diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs index 96de3eea0..1a0499f2c 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; +using Tango.BL.Entities; using Tango.Integration.ExternalBridge; namespace Tango.MachineStudio.Common.StudioApplication @@ -32,7 +33,12 @@ namespace Tango.MachineStudio.Common.StudioApplication /// /// Gets or sets the currently connected machine if any. /// - IExternalBridgeClient ConnectedMachine { get; set; } + IExternalBridgeClient ConnectedMachine { get; } + + /// + /// Gets or sets the machine. + /// + Machine Machine { get; } /// /// Gets a value indicating whether the is valid. @@ -75,5 +81,11 @@ namespace Tango.MachineStudio.Common.StudioApplication /// Raises the application ready event. /// void NotifyApplicationReady(); + + /// + /// Sets the connected machine. + /// + /// The connected machine. + void SetConnectedMachine(IExternalBridgeClient connectedMachine); } } -- cgit v1.3.1