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

Inheritance: DownloadProtocol, IHttpDownloadProtocol
Show file Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
DownloadAsync ( TransferSpec spec ) : System.Threading.Tasks.Task
HttpDownloadProtocol ( Func webClientFactory, Tools fileOps ) : System

Private Methods

Method Description
CreateTimeoutException ( TransferSpec spec, Exception e ) : DownloadException
Download ( TransferSpec spec ) : void
GenerateDownloadException ( TransferSpec spec, WebException e ) : Exception
GetTmpFile ( TransferSpec spec ) : IAbsoluteFilePath
TryDownloadAsync ( TransferSpec spec, IWebClient webClient, IAbsoluteFilePath tmpFile ) : System.Threading.Tasks.Task

Method Details

DownloadAsync() public method

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

HttpDownloadProtocol() public method

public HttpDownloadProtocol ( Func webClientFactory, Tools fileOps ) : System
webClientFactory Func
fileOps Tools
return System