C# 클래스 CmisSync.Lib.FileTransmission.ChunkedUploader

Chunked uploader takes a file and splits the upload into chunks. Resuming a failed upload is possible.
상속: SimpleFileUploader
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
ChunkedUploader ( long chunkSize = 1024*1024 ) : System

Initializes a new instance of the ChunkedUploader class.

UploadFile ( IDocument remoteDocument, Stream localFileStream, Transmission transmission, HashAlgorithm hashAlg, bool overwrite = true, UpdateChecksum update = null ) : IDocument

Uploads the file. Resumes an upload if the given localFileStream.Position is larger than zero.

메소드 상세

ChunkedUploader() 공개 메소드

Initializes a new instance of the ChunkedUploader class.
public ChunkedUploader ( long chunkSize = 1024*1024 ) : System
chunkSize long /// Chunk size. ///
리턴 System

UploadFile() 공개 메소드

Uploads the file. Resumes an upload if the given localFileStream.Position is larger than zero.
/// Contains the last successful remote document state. This is needed for continue a failed upload. ///
public UploadFile ( IDocument remoteDocument, Stream localFileStream, Transmission transmission, HashAlgorithm hashAlg, bool overwrite = true, UpdateChecksum update = null ) : IDocument
remoteDocument IDocument /// Remote document where the local content should be uploaded to. ///
localFileStream Stream /// Local file stream. ///
transmission Transmission /// Transmission status where the uploader should report its uploading status. ///
hashAlg System.Security.Cryptography.HashAlgorithm /// Hash alg which should be used to calculate a checksum over the uploaded content. ///
overwrite bool /// If true, the local content will overwrite the existing content. ///
update UpdateChecksum Is called on every new chunk, if not null.
리턴 IDocument