C# Class withSIX.Sync.Core.Transfer.Protocols.ZsyncDownloadWithHttpFallbackProtocol

Inheritance: ZsyncDownloadProtocol
Datei anzeigen Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
Download ( TransferSpec spec ) : void
DownloadAsync ( TransferSpec spec ) : System.Threading.Tasks.Task
ZsyncDownloadWithHttpFallbackProtocol ( IZsyncLauncher zsyncLauncher, IHttpDownloadProtocol httpDownloader ) : System

Protected Methods

Method Description
TryRegularHttpDownload ( TransferSpec spec, Exception exception ) : void
TryRegularHttpDownloadAsync ( TransferSpec spec, Exception exception ) : System.Threading.Tasks.Task

Private Methods

Method Description
AllowZsyncFallback ( ITransferProgress progress ) : bool
TryDownload ( TransferSpec spec ) : void
TryDownloadAsync ( TransferSpec spec ) : System.Threading.Tasks.Task

Method Details

Download() public method

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

DownloadAsync() public method

public DownloadAsync ( TransferSpec spec ) : System.Threading.Tasks.Task
spec withSIX.Sync.Core.Transfer.Specs.TransferSpec
return System.Threading.Tasks.Task

TryRegularHttpDownload() protected method

protected TryRegularHttpDownload ( TransferSpec spec, Exception exception ) : void
spec withSIX.Sync.Core.Transfer.Specs.TransferSpec
exception System.Exception
return void

TryRegularHttpDownloadAsync() protected method

protected TryRegularHttpDownloadAsync ( TransferSpec spec, Exception exception ) : System.Threading.Tasks.Task
spec withSIX.Sync.Core.Transfer.Specs.TransferSpec
exception System.Exception
return System.Threading.Tasks.Task

ZsyncDownloadWithHttpFallbackProtocol() public method

public ZsyncDownloadWithHttpFallbackProtocol ( IZsyncLauncher zsyncLauncher, IHttpDownloadProtocol httpDownloader ) : System
zsyncLauncher IZsyncLauncher
httpDownloader IHttpDownloadProtocol
return System