C# 클래스 NuxeoClient.Uploader

Provides a cass for uploading files to a Nuxeo server. Files can be uploaded as a whole or in several chunks.
No server-side error handling was implemented. If an upload job fails, a FailedToUploadException is thrown.
파일 보기 프로젝트 열기: nuxeo/nuxeo-dotnet-client 1 사용 예제들

공개 메소드들

메소드 설명
AddFile ( string file ) : Uploader

Adds a file to the upload queue.

AddFiles ( string files ) : Uploader

Adds several files to the upload queue.

Operation ( string operationId ) : Operation

Creates a new instance of Operation to be executed on all uploaded files in the current batch.

SetChunkSize ( int size ) : Uploader

Sets the chunk size.

SetChunked ( bool isChunkedUpload ) : Uploader

Sets whether files should be uploaded in chunks or not.

SetNumConcurrentUploads ( int num ) : Uploader

Sets the number of maximum concurent uploads.

UploadFiles ( ) : Task

Uploads all files in the upload queue.

Uploader ( Client client ) : NuxeoClient.Wrappers

Initializes a new instance of Uploader.

비공개 메소드들

메소드 설명
ProcessFile ( string path ) : Task
UploadBlob ( UploadJob job ) : Task

메소드 상세

AddFile() 공개 메소드

Adds a file to the upload queue.
public AddFile ( string file ) : Uploader
file string The path to the file to be uploaded.
리턴 Uploader

AddFiles() 공개 메소드

Adds several files to the upload queue.
public AddFiles ( string files ) : Uploader
files string An array containing the paths to the files to be uploaded.
리턴 Uploader

Operation() 공개 메소드

Creates a new instance of Operation to be executed on all uploaded files in the current batch.
public Operation ( string operationId ) : Operation
operationId string The operation id.
리턴 Operation

SetChunkSize() 공개 메소드

Sets the chunk size.
public SetChunkSize ( int size ) : Uploader
size int Chunk size in bytes.
리턴 Uploader

SetChunked() 공개 메소드

Sets whether files should be uploaded in chunks or not.
public SetChunked ( bool isChunkedUpload ) : Uploader
isChunkedUpload bool A boolean that should be true if the upload is to be in chunks, or false otherwise.
리턴 Uploader

SetNumConcurrentUploads() 공개 메소드

Sets the number of maximum concurent uploads.
public SetNumConcurrentUploads ( int num ) : Uploader
num int The number of concurrent uploads.
리턴 Uploader

UploadFiles() 공개 메소드

Uploads all files in the upload queue.
public UploadFiles ( ) : Task
리턴 Task

Uploader() 공개 메소드

Initializes a new instance of Uploader.
public Uploader ( Client client ) : NuxeoClient.Wrappers
client Client The Nuxeo throw which the upload requests will be made.
리턴 NuxeoClient.Wrappers