aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-05-09 18:07:56 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-05-09 18:07:56 +0300
commite1236499b485a69648bea4d7871aa185e5dae745 (patch)
tree8cd4ccd7d272c8c4e61d4bd6bcba434eb9522b85 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
parent2a459c79e90a2ade3f1dac1ae4541c0f4d74965c (diff)
downloadTango-e1236499b485a69648bea4d7871aa185e5dae745.tar.gz
Tango-e1236499b485a69648bea4d7871aa185e5dae745.zip
New TemporaryManager !
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
index fb937f52e..28d0cd3f1 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Web.Hosting;
using System.Web.Http;
using Tango.Core.Helpers;
+using Tango.Core.IO;
using Tango.PMR.Stubs;
using Tango.PMR.Synchronization;
using Tango.Synchronization.Local;
@@ -26,7 +27,7 @@ namespace Tango.MachineService.Controllers
[HttpPost]
public SynchronizeDBResponse Synchronize(SynchronizeDBRequest request)
{
- String tempFolder = PathHelper.GetTempFolderPath();
+ var tempFolder = TemporaryManager.Default.CreateFolder();
try
{
@@ -60,7 +61,7 @@ namespace Tango.MachineService.Controllers
finally
{
//Remove all temporary files and folder.
- PathHelper.TryDeleteFolder(tempFolder);
+ tempFolder.Delete();
}
}
}