C# Class CmisSync.Lib.Queueing.TransmissionManager

Transmission manager.
Show file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
AbortAllRequests ( ) : void

Aborts all open HTTP requests.

ActiveTransmissionsAsList ( ) : List

Active the transmissions as list.

ActiveTransmissionsAsList ( ) : List

Active the transmissions as list.

AddPathRepoMapping ( string path, string repoName ) : void

Adds the path repo mapping entry to internal storage.

AddTransmission ( TransmissionController transmission ) : bool

Add a new Transmission to the active transmission manager

CreateTransmission ( TransmissionType type, string path, string cachePath = null ) : Transmission

Creates a new the transmission object and adds it to the manager. The manager decides when to and how the transmission gets removed from it.

Private Methods

Method Description
TransmissionFinished ( object sender, PropertyChangedEventArgs e ) : void

If a transmission is reported as finished/aborted/failed, the transmission is removed from the collection

Method Details

AbortAllRequests() public method

Aborts all open HTTP requests.
public AbortAllRequests ( ) : void
return void

ActiveTransmissionsAsList() public method

Active the transmissions as list.
public ActiveTransmissionsAsList ( ) : List
return List

ActiveTransmissionsAsList() public method

Active the transmissions as list.
public ActiveTransmissionsAsList ( ) : List
return List

AddPathRepoMapping() public method

Adds the path repo mapping entry to internal storage.
public AddPathRepoMapping ( string path, string repoName ) : void
path string Local path.
repoName string Repo name.
return void

AddTransmission() public method

Add a new Transmission to the active transmission manager
public AddTransmission ( TransmissionController transmission ) : bool
transmission TransmissionController transmission which should be added
return bool

CreateTransmission() public method

Creates a new the transmission object and adds it to the manager. The manager decides when to and how the transmission gets removed from it.
public CreateTransmission ( TransmissionType type, string path, string cachePath = null ) : Transmission
type TransmissionType Transmission type.
path string Full path.
cachePath string Cache path.
return CmisSync.Lib.FileTransmission.Transmission