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)); }
public async Task <bool> CreateDirectory(string directoryPath) { return(await TaskHelper <bool> .AsyncPattern(CreateDirectorySync, directoryPath)); }
public async Task <bool> DeleteFile(string directory) { return(await TaskHelper <bool> .AsyncPattern(DeleteFileSync, directory)); }
public async Task <string> GetDirectoryName(string directoryPath) { return(await TaskHelper <string> .AsyncPattern(GetDirectoryNameSync, directoryPath)); }
public async Task <Dictionary <string, DriveType> > GetDrives() { return(await TaskHelper <Dictionary <string, DriveType> > .AsyncPattern(GetDrivesSync)); }
public async Task <string> GetHashMd5(string kernelPath) { var hashProvider = new HashProvider(); return(await TaskHelper <string> .AsyncPattern(hashProvider.CalculateMD5, kernelPath)); }
public async Task <bool> DirectoryExists(string siteName) { return(await TaskHelper <bool> .AsyncPattern(Directory.Exists, siteName)); }
public async Task <bool> RenameDirectory(string oldFileFullPath, string newFullPath) { return(await TaskHelper <bool> .AsyncPattern(RenameDirectorySync, oldFileFullPath, newFullPath)); }