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

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