Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all resource used by the CmisSync.Lib.FileTransmission.SimpleFileDownloader object. Call Dispose when you are finished using the CmisSync.Lib.FileTransmission.SimpleFileDownloader. The Dispose method leaves the CmisSync.Lib.FileTransmission.SimpleFileDownloader in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.FileTransmission.SimpleFileDownloader so the garbage collector can reclaim the memory that the CmisSync.Lib.FileTransmission.SimpleFileDownloader was occupying. |
|
DownloadFile ( IDocument remoteDocument, Stream localFileStream, |
Downloads the file and returns the SHA-1 hash of the content of the saved file
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
|
Method | Description | |
---|---|---|
UpdateHash ( |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If set to |
return | void |
public DownloadFile ( IDocument remoteDocument, Stream localFileStream, |
||
remoteDocument | IDocument | Remote document. |
localFileStream | Stream | Local taget file stream. |
transmission | Transmission status. | |
hashAlg | Hash algoritm, which should be used to calculate hash of the uploaded stream content | |
update | UpdateChecksum | |
return | void |