aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-05-13 12:08:20 +0300
committerAvi Levkovich <avi@twine-s.com>2018-05-13 12:08:20 +0300
commit82ea027530fa6e2512b30d1e069a602aed73be5f (patch)
tree6af1d6a41973f0598f063dd0c122ef139a412994 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
parente74f4da5899eea9abea143771fa2a950a50da963 (diff)
parentc61415008c418af3d628185efa1fa746aaf0516c (diff)
downloadTango-82ea027530fa6e2512b30d1e069a602aed73be5f.tar.gz
Tango-82ea027530fa6e2512b30d1e069a602aed73be5f.zip
move to one motors id enum + remove AMT_OF_WORDS
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();
}
}
}