Esempio n. 1
0
 public async Task DeleteFileAsync(string filePath)
 {
     try
     {
         await _files.DeleteFileAsync(filePath);
     }
     catch (Exception e)
     {
         throw new RemoteNodeException(_machine, e);
     }
 }
Esempio n. 2
0
        public void DeleteFile(string destinationFilePath)
        {
            var operation = _operationTracker.BeginDeleteFile(destinationFilePath);

            try
            {
                _files.DeleteFileAsync(destinationFilePath).Wait();
                operation.Success();
            }
            catch (Exception e)
            {
                operation.Failed(e);
                throw;
            }
        }