Beispiel #1
0
        private void CreateFilePrivate(string destinationFilePath, byte[] content)
        {
            var file = new CreateFile
            {
                FilePath = destinationFilePath,
                Content  = content
            };

            _files.ExecuteBatchAsync(new FileBatch {
                FilesToCreate = { file }
            }).Wait();
        }
Beispiel #2
0
 public async Task ExecuteBatchAsync(FileBatch batch)
 {
     try
     {
         await _files.ExecuteBatchAsync(batch);
     }
     catch (Exception e)
     {
         throw new RemoteNodeException(_machine, e);
     }
 }