C# Class withSIX.Sync.Core.Transfer.MultiMirrorFileDownloader

Inheritance: IMultiMirrorFileDownloader
Mostra file Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Public Methods

Method Description
Download ( MultiMirrorFileDownloadSpec spec ) : void
Download ( MultiMirrorFileDownloadSpec spec, CancellationToken token ) : void
DownloadAsync ( MultiMirrorFileDownloadSpec spec ) : Task
DownloadAsync ( MultiMirrorFileDownloadSpec spec, CancellationToken token ) : Task
MultiMirrorFileDownloader ( IFileDownloader downloader, IMirrorSelector mirrorSelector ) : System

Protected Methods

Method Description
TryDownloadFile ( MultiMirrorFileDownloadSpec spec, Uri host ) : void
TryDownloadFileAsync ( MultiMirrorFileDownloadSpec spec, Uri host ) : Task

Private Methods

Method Description
BuildSpec ( MultiMirrorFileDownloadSpec spec, Uri host ) : FileDownloadSpec
ResetSpec ( MultiMirrorFileDownloadSpec spec ) : void
TryDownload ( MultiMirrorFileDownloadSpec spec, Uri host ) : bool
TryDownloadAsync ( MultiMirrorFileDownloadSpec spec, Uri host ) : Task

Method Details

Download() public method

public Download ( MultiMirrorFileDownloadSpec spec ) : void
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
return void

Download() public method

public Download ( MultiMirrorFileDownloadSpec spec, CancellationToken token ) : void
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
token System.Threading.CancellationToken
return void

DownloadAsync() public method

public DownloadAsync ( MultiMirrorFileDownloadSpec spec ) : Task
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
return Task

DownloadAsync() public method

public DownloadAsync ( MultiMirrorFileDownloadSpec spec, CancellationToken token ) : Task
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
token System.Threading.CancellationToken
return Task

MultiMirrorFileDownloader() public method

public MultiMirrorFileDownloader ( IFileDownloader downloader, IMirrorSelector mirrorSelector ) : System
downloader IFileDownloader
mirrorSelector IMirrorSelector
return System

TryDownloadFile() protected method

protected TryDownloadFile ( MultiMirrorFileDownloadSpec spec, Uri host ) : void
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
host System.Uri
return void

TryDownloadFileAsync() protected method

protected TryDownloadFileAsync ( MultiMirrorFileDownloadSpec spec, Uri host ) : Task
spec withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec
host System.Uri
return Task