public override Task <string> DirectDownloadLink(Backup backup) { var service = new Service(backup.ServiceId); var server = new Server(service.ServerId); var saveTo = FileSystem.CombinePath(server.OperatingSystem, Configuration.LocalDirectory.ReplaceVariables(service), backup.ZipFullName); var remoteDownload = new RemoteDownload(server) { DirectorySecurity = service.GetDirectorySecurityForCurrentUser(), FileName = saveTo }; return(System.Threading.Tasks.Task.FromResult(remoteDownload.GetDownloadUrl())); }