From cb1b51c238c64f570d73b7dca6a2eee205b2da01 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sat, 11 Apr 2020 00:54:54 +0300 Subject: Implemented FSE bug reporting !!! --- .../FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs | 6 ++++++ 1 file changed, 6 insertions(+) (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 8381133bf..3ab27fe1e 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs @@ -8,6 +8,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; using Tango.Core; +using Tango.Core.DI; using Tango.Core.ExtensionMethods; using Tango.Core.IO; using Tango.Core.Threading; @@ -15,6 +16,7 @@ using Tango.FileSystem; using Tango.FileSystem.Network; using Tango.FSE.Common.Connection; using Tango.FSE.Common.FileSystem; +using Tango.FSE.Common.Notifications; using Tango.Transport; using Tango.Transport.Transporters; using Tango.WebRTC; @@ -38,6 +40,9 @@ namespace Tango.FSE.UI.FileSystem private const int WEB_RTC_MAX_RETRIES = 8; //Maximum number of retries per chunk for the WebRTC channel until falling back to standard channel. private List _activeHandlers; + [TangoInject] + private INotificationProvider NotificationProvider { get; set; } + #region Properties private bool _enableWebRTC; @@ -170,6 +175,7 @@ namespace Tango.FSE.UI.FileSystem { IsWebRtcAvailable = false; LogManager.Log(ex, "Error initializing FileSystem via WebRTC."); + NotificationProvider.PushErrorReportingSnackbar(ex, "PPC Module Error", "Could not initialize the remote file system fast channel."); } } } -- cgit v1.3.1