Esempio n. 1
0
        public MigrationResult MigrateToOstor(DirectoryBlock directoryBlock, ICloudServiceIO cloudService)
        {
            MigrationResult        result            = new MigrationResult();
            DownloadCloudDirectory downloadDirectory = new DownloadCloudDirectory(directoryBlock, "C:\\CloudFiles\\", cloudService);

            downloadDirectory.DownloadAsync();
            return(result);
        }
Esempio n. 2
0
        public MigrationResult MigrateToOstor(DirectoryBlock directoryBlock)
        {
            MigrationResult result = new MigrationResult();

            while (System.IO.File.Exists(TransactionFilePath))
            {
                TransactionFile        logFile           = new TransactionFile();
                DirectoryBlock         toDownloadBlock   = logFile.Deserialize();
                DownloadCloudDirectory downloadDirectory = new DownloadCloudDirectory(toDownloadBlock, "C:\\CloudFiles\\", cloudService);
                downloadDirectory.DownloadAsync();
                CleanUpTransactionFile();
                if (DownloadCompleteStatus == true)
                {
                    System.IO.File.Delete(TransactionFilePath);
                }
            }
            return(result);
        }