diff options
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs | 5 |
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(); } } } |
