private void CreateFilePrivate(string destinationFilePath, byte[] content) { var file = new CreateFile { FilePath = destinationFilePath, Content = content }; _files.ExecuteBatchAsync(new FileBatch { FilesToCreate = { file } }).Wait(); }
public async Task ExecuteBatchAsync(FileBatch batch) { try { await _files.ExecuteBatchAsync(batch); } catch (Exception e) { throw new RemoteNodeException(_machine, e); } }