C# Class withSIX.Sync.Core.Legacy.FileDownloadHelper

Inheritance: IFileDownloadHelper
显示文件 Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
DownloadFileAsync ( Uri uri, IAbsoluteFilePath localFile ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IMirrorSelector selector, int limit, CancellationToken token ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IReadOnlyCollection remotes, CancellationToken token, int limit ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IReadOnlyCollection remotes, CancellationToken token, int limit, bool>.Func confirmValidity ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteFilePath destinationPath, IMirrorSelector selector, ITransferStatus status, CancellationToken token ) : Task
DownloadFilesAsync ( IReadOnlyCollection remotes, StatusRepo sr, ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destination ) : Task
DownloadFilesAsync ( IReadOnlyCollection remotes, StatusRepo sr, ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destination, int limit ) : Task
FileDownloadHelper ( IFileDownloader downloader, Func createMultiMirrorFileDownloader, Func createMirrorSelector, Func createMirrorSelectorWithLimit, Func createQueueDownloader ) : System
StartMirrorSession ( IReadOnlyCollection remotes ) : ExportLifetimeContext
StartMirrorSession ( int limit, IReadOnlyCollection remotes ) : ExportLifetimeContext

Private Methods

Method Description
CreateFileQueueSpec ( ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destination ) : FileQueueSpec
DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IMirrorSelector scoreMirrorSelector, CancellationToken token ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IMirrorSelector scoreMirrorSelector, CancellationToken token, bool>.Func confirmValidity, int zsyncHttpFallbackAfter ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteFilePath destinationPath, IMirrorSelector scoreMirrorSelector, CancellationToken token, bool>.Func confirmValidity, ITransferStatus status ) : Task
DownloadFileAsync ( string remoteFile, IAbsoluteFilePath destinationPath, IMirrorSelector scoreMirrorSelector, CancellationToken token, bool>.Func confirmValidity, int zsyncHttpFallbackAfter ) : Task
DownloadFilesAsync ( StatusRepo sr, ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destinationPath, IMirrorSelector scoreMirrorSelector ) : Task

Method Details

DownloadFileAsync() public method

public DownloadFileAsync ( Uri uri, IAbsoluteFilePath localFile ) : Task
uri System.Uri
localFile IAbsoluteFilePath
return Task

DownloadFileAsync() public method

public DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IMirrorSelector selector, int limit, CancellationToken token ) : Task
remoteFile string
destinationPath IAbsoluteDirectoryPath
selector IMirrorSelector
limit int
token System.Threading.CancellationToken
return Task

DownloadFileAsync() public method

public DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IReadOnlyCollection remotes, CancellationToken token, int limit ) : Task
remoteFile string
destinationPath IAbsoluteDirectoryPath
remotes IReadOnlyCollection
token System.Threading.CancellationToken
limit int
return Task

DownloadFileAsync() public method

public DownloadFileAsync ( string remoteFile, IAbsoluteDirectoryPath destinationPath, IReadOnlyCollection remotes, CancellationToken token, int limit, bool>.Func confirmValidity ) : Task
remoteFile string
destinationPath IAbsoluteDirectoryPath
remotes IReadOnlyCollection
token System.Threading.CancellationToken
limit int
confirmValidity bool>.Func
return Task

DownloadFileAsync() public method

public DownloadFileAsync ( string remoteFile, IAbsoluteFilePath destinationPath, IMirrorSelector selector, ITransferStatus status, CancellationToken token ) : Task
remoteFile string
destinationPath IAbsoluteFilePath
selector IMirrorSelector
status ITransferStatus
token System.Threading.CancellationToken
return Task

DownloadFilesAsync() public method

public DownloadFilesAsync ( IReadOnlyCollection remotes, StatusRepo sr, ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destination ) : Task
remotes IReadOnlyCollection
sr StatusRepo
transferStatuses ITransferStatus>.IDictionary
destination IAbsoluteDirectoryPath
return Task

DownloadFilesAsync() public method

public DownloadFilesAsync ( IReadOnlyCollection remotes, StatusRepo sr, ITransferStatus>.IDictionary transferStatuses, IAbsoluteDirectoryPath destination, int limit ) : Task
remotes IReadOnlyCollection
sr StatusRepo
transferStatuses ITransferStatus>.IDictionary
destination IAbsoluteDirectoryPath
limit int
return Task

FileDownloadHelper() public method

public FileDownloadHelper ( IFileDownloader downloader, Func createMultiMirrorFileDownloader, Func createMirrorSelector, Func createMirrorSelectorWithLimit, Func createQueueDownloader ) : System
downloader IFileDownloader
createMultiMirrorFileDownloader Func
createMirrorSelector Func
createMirrorSelectorWithLimit Func
createQueueDownloader Func
return System

StartMirrorSession() public method

public StartMirrorSession ( IReadOnlyCollection remotes ) : ExportLifetimeContext
remotes IReadOnlyCollection
return ExportLifetimeContext

StartMirrorSession() public method

public StartMirrorSession ( int limit, IReadOnlyCollection remotes ) : ExportLifetimeContext
limit int
remotes IReadOnlyCollection
return ExportLifetimeContext