public async Task <bool> SaveToFile(BackupInfo backupInfo)
 {
     return(await TaskHelper <bool> .AsyncPattern(SaveToFileSync, backupInfo));
 }
 public async Task <BackupInfo> GetFromArchive(string fileName)
 {
     return(await TaskHelper <BackupInfo> .AsyncPattern(GetFromArchiveSync, fileName));
 }
Exemple #3
0
 public async Task <bool> CreateDirectory(string directoryPath)
 {
     return(await TaskHelper <bool> .AsyncPattern(CreateDirectorySync, directoryPath));
 }
Exemple #4
0
 public async Task <bool> DeleteFile(string directory)
 {
     return(await TaskHelper <bool> .AsyncPattern(DeleteFileSync, directory));
 }
Exemple #5
0
 public async Task <string> GetDirectoryName(string directoryPath)
 {
     return(await TaskHelper <string> .AsyncPattern(GetDirectoryNameSync, directoryPath));
 }
Exemple #6
0
 public async Task <Dictionary <string, DriveType> > GetDrives()
 {
     return(await TaskHelper <Dictionary <string, DriveType> > .AsyncPattern(GetDrivesSync));
 }
Exemple #7
0
        public async Task <string> GetHashMd5(string kernelPath)
        {
            var hashProvider = new HashProvider();

            return(await TaskHelper <string> .AsyncPattern(hashProvider.CalculateMD5, kernelPath));
        }
Exemple #8
0
 public async Task <bool> DirectoryExists(string siteName)
 {
     return(await TaskHelper <bool> .AsyncPattern(Directory.Exists, siteName));
 }
Exemple #9
0
 public async Task <bool> RenameDirectory(string oldFileFullPath, string newFullPath)
 {
     return(await TaskHelper <bool> .AsyncPattern(RenameDirectorySync, oldFileFullPath, newFullPath));
 }