C# Class uploader.FileUpload

Inheritance: INotifyPropertyChanged
显示文件 Open project: dmitry-dedukhin/lightweight-uploader Class Usage Examples

Public Properties

Property Type Description
ChunkSize long
SessionId string

Public Methods

Method Description
CancelUpload ( ) : void
FileUpload ( Dispatcher dispatcher ) : System
FileUpload ( Dispatcher dispatcher, FileInfo fileToUpload ) : System
RetryUpload ( ) : void
StartUpload ( ) : void
UploadFileEx ( ) : void
UploadFileRetryEx ( object o, EventArgs sender ) : void

Private Methods

Method Description
CalcNextChunkRanges ( ) : void
ReadCallback ( IAsyncResult asynchronousResult ) : void
SetFileStatus ( ) : void
WriteCallback ( IAsyncResult asynchronousResult ) : void
setErrorDescription ( Exception ex, string where ) : void

Method Details

CancelUpload() public method

public CancelUpload ( ) : void
return void

FileUpload() public method

public FileUpload ( Dispatcher dispatcher ) : System
dispatcher System.Windows.Threading.Dispatcher
return System

FileUpload() public method

public FileUpload ( Dispatcher dispatcher, FileInfo fileToUpload ) : System
dispatcher System.Windows.Threading.Dispatcher
fileToUpload System.IO.FileInfo
return System

RetryUpload() public method

public RetryUpload ( ) : void
return void

StartUpload() public method

public StartUpload ( ) : void
return void

UploadFileEx() public method

public UploadFileEx ( ) : void
return void

UploadFileRetryEx() public method

public UploadFileRetryEx ( object o, EventArgs sender ) : void
o object
sender System.EventArgs
return void

Property Details

ChunkSize public_oe property

public long ChunkSize
return long

SessionId public_oe property

public string SessionId
return string