C# Class CmisSync.Lib.FileTransmission.ContentTaskUtils

Content task utils.
Show file Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
CreateDownloader ( long chunkSize, IFileTransmissionStorage storage = null ) : IFileDownloader

Creates the downloader.

CreateUploader ( long chunkSize ) : IFileUploader

Creates the matching uploader.

PrepareResume ( long successfulLength, Stream successfulPart, HashAlgorithm hashAlg ) : void

Prepares to resume.

Method Details

CreateDownloader() public static method

Creates the downloader.
public static CreateDownloader ( long chunkSize, IFileTransmissionStorage storage = null ) : IFileDownloader
chunkSize long Chunk size.
storage IFileTransmissionStorage
return IFileDownloader

CreateUploader() public static method

Creates the matching uploader.
public static CreateUploader ( long chunkSize ) : IFileUploader
chunkSize long Chunk size.
return IFileUploader

PrepareResume() public static method

Prepares to resume.
public static PrepareResume ( long successfulLength, Stream successfulPart, HashAlgorithm hashAlg ) : void
successfulLength long Successful length.
successfulPart Stream Successful part.
hashAlg System.Security.Cryptography.HashAlgorithm Hash algorithm
return void