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

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

Public Methods

Method Description
HttpUploadProtocol ( Func webClientFactory ) : System
UploadAsync ( TransferSpec spec ) : System.Threading.Tasks.Task

Private Methods

Method Description
CreateTimeoutException ( TransferSpec spec, Exception e ) : UploadException
GenerateUploadException ( TransferSpec spec, WebException e ) : void
TryUploadAsync ( TransferSpec spec, IWebClient webClient ) : System.Threading.Tasks.Task
Upload ( TransferSpec spec ) : void

Method Details

HttpUploadProtocol() public method

public HttpUploadProtocol ( Func webClientFactory ) : System
webClientFactory Func
return System

UploadAsync() public method

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