NuxeoDotNetClient
1.0.0 beta
.NET Client for Nuxeo Automation and REST API
|
Provides a cass for uploading files to a Nuxeo server. Files can be uploaded as a whole or in several chunks. More...
Public Member Functions | |
Uploader (Client client) | |
Initializes a new instance of Uploader. More... | |
Uploader | SetChunked (bool isChunkedUpload) |
Sets whether files should be uploaded in chunks or not. More... | |
Uploader | SetChunkSize (int size) |
Sets the chunk size. More... | |
Uploader | AddFile (string file) |
Adds a file to the upload queue. More... | |
Uploader | AddFiles (string[] files) |
Adds several files to the upload queue. More... | |
Operation | Operation (string operationId) |
Creates a new instance of Operation to be executed on all uploaded files in the current batch. More... | |
async Task< Entity > | UploadFiles () |
Uploads all files in the upload queue. More... | |
Properties | |
Batch | Batch [get] |
Gets the batch to upload. More... | |
int | NumConcurrentUploads = null [get] |
Gets the number of maximum concurrent uploads. More... | |
bool | IsChunkedUpload = 5 [get] |
Gets whether uploads should be perform in chunks or not. More... | |
int | ChunkSize = false [get] |
Gets the chunk size in bytes. More... | |
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.
Definition at line 33 of file Uploader.cs.
NuxeoClient.Uploader.Uploader | ( | Client | client | ) |
Initializes a new instance of Uploader.
client | The Nuxeo Client throw which the upload requests will be made. |
Definition at line 65 of file Uploader.cs.
Uploader NuxeoClient.Uploader.AddFile | ( | string | file | ) |
Adds a file to the upload queue.
file | The path to the file to be uploaded. |
Definition at line 97 of file Uploader.cs.
Uploader NuxeoClient.Uploader.AddFiles | ( | string[] | files | ) |
Adds several files to the upload queue.
files | An array containing the paths to the files to be uploaded. |
Definition at line 108 of file Uploader.cs.
Operation NuxeoClient.Uploader.Operation | ( | string | operationId | ) |
Creates a new instance of Operation to be executed on all uploaded files in the current batch.
operationId | The operation id. |
Definition at line 120 of file Uploader.cs.
Uploader NuxeoClient.Uploader.SetChunked | ( | bool | isChunkedUpload | ) |
Sets whether files should be uploaded in chunks or not.
isChunkedUpload | A boolean that should be true if the upload is to be in chunks, or false otherwise. |
Definition at line 75 of file Uploader.cs.
Uploader NuxeoClient.Uploader.SetChunkSize | ( | int | size | ) |
Sets the chunk size.
size | Chunk size in bytes. |
Definition at line 86 of file Uploader.cs.
async Task<Entity> NuxeoClient.Uploader.UploadFiles | ( | ) |
Uploads all files in the upload queue.
Definition at line 130 of file Uploader.cs.
|
get |
Gets the batch to upload.
Definition at line 44 of file Uploader.cs.
|
get |
Gets the chunk size in bytes.
Definition at line 59 of file Uploader.cs.
|
get |
Gets whether uploads should be perform in chunks or not.
Definition at line 54 of file Uploader.cs.
|
get |
Gets the number of maximum concurrent uploads.
Definition at line 49 of file Uploader.cs.