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));
 }
Ejemplo n.º 3
0
 public async Task <bool> CreateDirectory(string directoryPath)
 {
     return(await TaskHelper <bool> .AsyncPattern(CreateDirectorySync, directoryPath));
 }
Ejemplo n.º 4
0
 public async Task <bool> DeleteFile(string directory)
 {
     return(await TaskHelper <bool> .AsyncPattern(DeleteFileSync, directory));
 }
Ejemplo n.º 5
0
 public async Task <string> GetDirectoryName(string directoryPath)
 {
     return(await TaskHelper <string> .AsyncPattern(GetDirectoryNameSync, directoryPath));
 }
Ejemplo n.º 6
0
 public async Task <Dictionary <string, DriveType> > GetDrives()
 {
     return(await TaskHelper <Dictionary <string, DriveType> > .AsyncPattern(GetDrivesSync));
 }
Ejemplo n.º 7
0
        public async Task <string> GetHashMd5(string kernelPath)
        {
            var hashProvider = new HashProvider();

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