Example #1
0
 public void Cancel(int requestId)
 {
     _requestIdToFiles.TryRemove(requestId, out var file);
     _concurrentManager.ReleaseSynchronization(new List <IFolderContent>()
     {
         new FolderContent(file.Name, file.Path, file.Type)
     });
 }
Example #2
0
 public void CreateFile(string name, string path, string fileType, string tmpCreationPath, long size)
 {
     try
     {
         _searchCache.ClearCache();
         _folderContentFileService.CreateFile(name, path, fileType, tmpCreationPath, size);
     }
     finally
     {
         _concurrentManager.ReleaseSynchronization(new List <IFolderContent>()
         {
             new FolderContent(name, path, FolderContentType.File)
         });
     }
 }