C# Class CmisSync.Lib.FileTransmission.Transmission

File transmission event. This event should be queued only once. The progress will not be reported on the queue. Interested entities should add themselfs as TransmissionEventHandler on the event TransmissionStatus to get informed about the progress.
Inheritance: INotifyPropertyChanged
Show file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
Abort ( ) : void

Abort the transmission async.

CreateStream ( Stream wrappedStream ) : Stream

Creates the stream.

GetHashCode ( ) : int

Serves as a hash function for a CmisSync.Lib.FileTransmission.TransmissionController object.

Pause ( ) : void

Pause the transmission async.

Resume ( ) : void

Resume the transmission async.

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

Initializes a new instance of the CmisSync.Lib.FileTransmission.Transmission class.

Private Methods

Method Description
NotifyPropertyChanged ( string propertyName ) : void

This method is called by the Set accessor of each property.

Transmission ( ) : System

Method Details

Abort() public method

Abort the transmission async.
public Abort ( ) : void
return void

CreateStream() public method

Creates the stream.
public CreateStream ( Stream wrappedStream ) : Stream
wrappedStream Stream Wrapped stream.
return Stream

GetHashCode() public method

Serves as a hash function for a CmisSync.Lib.FileTransmission.TransmissionController object.
public GetHashCode ( ) : int
return int

Pause() public method

Pause the transmission async.
public Pause ( ) : void
return void

Resume() public method

Resume the transmission async.
public Resume ( ) : void
return void

Transmission() public method

Initializes a new instance of the CmisSync.Lib.FileTransmission.Transmission class.
public Transmission ( TransmissionType type, string path, string cachePath = null ) : System
type TransmissionType /// Type of the transmission. ///
path string /// Path to the file of the transmission. ///
cachePath string /// If a download runs and a cache file is used, this should be the path to the cache file ///
return System