From 4e216a0ca8ad3608b845fa445b73034e1a67b8af Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 19 Aug 2020 01:45:02 +0300 Subject: DB: Changed TechMonitors HeadZone5_6HeaterCurrent => HeadZone56HeaterCurrent Working on insights and insights annotations. Added insights events. Added insights settings to PPC advanced settings. Added compression support for transport adapters. Implemented compression support on TCP/SignalR/WebRTC. Added Compression flag to ExternalBridge discovery packet. Added compression setting to PPC advanced settings. Refactored transport layer to use Bson instead of Json for Generic Messages. Added all SciChart referenced assemblies. Registered EF Extensions license for FSE. Added support for FSE PushTask notification cancel button. --- .../FileSystem/DefaultFileSystemProvider.cs | 40 +++++++++++++++++++--- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs') diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs index 6673a5ae3..e7f9772ff 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs @@ -167,7 +167,10 @@ namespace Tango.FSE.UI.FileSystem Priority = QueuePriority.Low }); - _webRtcTransporter = new BasicTransporter(new WebRtcTransportAdapter(_machineProvider.MachineOperator, WebRtcTransportAdapterMode.Active, WEB_RTC_CHANNEL_NAME)); + _webRtcTransporter = new BasicTransporter(new WebRtcTransportAdapter(_machineProvider.MachineOperator, WebRtcTransportAdapterMode.Active, WEB_RTC_CHANNEL_NAME) + { + EnableCompression = _machineProvider.MachineOperator.CompressionEnabled, + }); _webRtcTransporter.UseKeepAlive = false; _webRtcTransporter.ComponentName = "File System Active WebRTC Transporter"; await _webRtcTransporter.Connect(); @@ -272,11 +275,12 @@ namespace Tango.FSE.UI.FileSystem /// /// Downloads the specified file or folder item. /// - /// The file or folder. + /// The remote file or folder. + /// Indicates whether the remote path is a file. /// The local target folder or file. - /// Indicates whether the localTargetFolder is a file. + /// Indicates whether the localTargetFolder is a file. /// - public Task Download(FileSystemItem item, String localTargetFolderOrFile, bool isSingleFile = false) + public Task Download(FileSystemItem item, String localTargetFolderOrFile, bool isLocalTargetFile = false) { AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_PPCFileSystemRead); @@ -289,7 +293,7 @@ namespace Tango.FSE.UI.FileSystem FileSystemHandler handler = null; - if (isSingleFile) + if (isLocalTargetFile) { destination = localTargetFolderOrFile; } @@ -536,6 +540,32 @@ namespace Tango.FSE.UI.FileSystem return Task.FromResult(handler); } + /// + /// Downloads the specified file or folder item. + /// + /// The remote file or folder. + /// Indicates whether the remote path is a file. + /// The local target folder or file. + /// Indicates whether the localTargetFolder is a file. + /// + public Task Download(String remotePath, bool isRemotePathFile, String localTargetFolderOrFile, bool isLocalTargetFile = false) + { + FileSystemItem item = null; + + if (isRemotePathFile) + { + item = new FileItem(); + } + else + { + item = new FolderItem(); + } + + item.Path = remotePath; + + return Download(item, localTargetFolderOrFile, isLocalTargetFile); + } + /// /// Uploads the specified local file or folder. /// -- cgit v1.3.1