public FileMessage EndExportDatabase(DownloadDatabaseRequests requests) { var stats = requests.DownloadStatistics; return(Return(UnsafeRetrieve(requests.User), MethodInfo.GetCurrentMethod(), null, () => { string fileName = DisconnectedLogic.ExportManager.BackupNetworkFileName( requests.DownloadStatistics.Retrieve().Machine.Retrieve(), requests.DownloadStatistics); var fi = new FileInfo(fileName); return new FileMessage { FileName = fi.Name, Length = fi.Length, Stream = fi.OpenRead(), //, OnDisposing = () => File.Delete(fileName), }; })); }
public FileMessage EndExportDatabase(DownloadDatabaseRequests request) { throw NotAvailableOffline(); }