C# Class snowpack.FDOperationQueue

显示文件 Open project: fardog/snowpack Class Usage Examples

Public Properties

Property Type Description
DownloadFile string
DownloadProgress int
DownloadRunning bool
UploadFile string
UploadProgress int
UploadRunning bool
current ConcurrentStack
finished ConcurrentStack
paused bool
wasStopped bool

Public Methods

Method Description
Add ( FDQueueItem item ) : void
FDOperationQueue ( FDDataStore store, FDUserSettings userset, FDOperationLog oplog ) : System
PauseQueue ( ) : bool
ProcessDownloadQueueWorker ( ) : void
ProcessFileDownload ( FDQueueItem item ) : void
ProcessFileUpload ( string fileName ) : void
ProcessUploadQueueWorker ( ) : void
QueueSize ( ) : int
Remove ( System.Guid guid ) : bool
StopQueue ( ) : void

Private Methods

Method Description
SaveQueue ( ) : void
_downloadProgress ( object sender, Amazon e ) : void
_uploadProgress ( object sender, Amazon e ) : void

Method Details

Add() public method

public Add ( FDQueueItem item ) : void
item FDQueueItem
return void

FDOperationQueue() public method

public FDOperationQueue ( FDDataStore store, FDUserSettings userset, FDOperationLog oplog ) : System
store FDDataStore
userset FDUserSettings
oplog FDOperationLog
return System

PauseQueue() public method

public PauseQueue ( ) : bool
return bool

ProcessDownloadQueueWorker() public method

public ProcessDownloadQueueWorker ( ) : void
return void

ProcessFileDownload() public method

public ProcessFileDownload ( FDQueueItem item ) : void
item FDQueueItem
return void

ProcessFileUpload() public method

public ProcessFileUpload ( string fileName ) : void
fileName string
return void

ProcessUploadQueueWorker() public method

public ProcessUploadQueueWorker ( ) : void
return void

QueueSize() public method

public QueueSize ( ) : int
return int

Remove() public method

public Remove ( System.Guid guid ) : bool
guid System.Guid
return bool

StopQueue() public method

public StopQueue ( ) : void
return void

Property Details

DownloadFile public_oe property

public string DownloadFile
return string

DownloadProgress public_oe property

public int DownloadProgress
return int

DownloadRunning public_oe property

public bool DownloadRunning
return bool

UploadFile public_oe property

public string UploadFile
return string

UploadProgress public_oe property

public int UploadProgress
return int

UploadRunning public_oe property

public bool UploadRunning
return bool

current public_oe property

public ConcurrentStack current
return ConcurrentStack

finished public_oe property

public ConcurrentStack finished
return ConcurrentStack

paused public_oe property

public bool paused
return bool

wasStopped public_oe property

public bool wasStopped
return bool