![]() |
DS3 .NET Software Development Kit
3.0.0
Provides access to the Spectra Logic DS3 API through .NET.
|
Public Member Functions | |
TSelf | WithMaxParallelRequests (int maxParallelRequests) |
Must always be called before the Transfer method. More... | |
TSelf | WithCancellationToken (CancellationToken cancellationToken) |
Must always be called before the Transfer method. More... | |
void | Transfer (Func< TItem, Stream > createStreamForTransferItem) |
Performs all GETs or PUTs for the job (depending on the type of job). More... | |
Properties | |
Guid | JobId [get] |
The id that allows the client to track job status and recover or delete jobs in the case of a failure during transfer. More... | |
string | BucketName [get] |
The name of the bucket that this job is transferring to. More... | |
Events | |
Action< long > | DataTransferred |
Fires handlers with the amount of additional data that's been transferred when a part of a job is transferred. More... | |
Action< TItem > | ItemCompleted |
Fires handlers with the name of each transferred item as their transfers finish. More... | |
void Ds3.Helpers.IBaseJob< TSelf, TItem >.Transfer | ( | Func< TItem, Stream > | createStreamForTransferItem | ) |
Performs all GETs or PUTs for the job (depending on the type of job).
This method uses DS3 cache handling requests to efficiently transfer objects and handles multiplexing single object streams when the DS3 job response splits individual objects into multiple requests. It also performs requests in parallel for situations where doing so can improve performance.
createStreamForTransferItem | Opens a stream for a given transfer item. |
TSelf Ds3.Helpers.IBaseJob< TSelf, TItem >.WithCancellationToken | ( | CancellationToken | cancellationToken | ) |
Must always be called before the Transfer method.
Allows the client to stop transferring to a job using a CancellationTokenSource. Note that this does not cancel a job, and the job can be resumed later. If you'd like to cancel a job, use IDs3Client.DeleteJob().
cancellationToken |
TSelf Ds3.Helpers.IBaseJob< TSelf, TItem >.WithMaxParallelRequests | ( | int | maxParallelRequests | ) |
Must always be called before the Transfer method.
Specifies The maximum number of simultaneous transfers to or from the server for this particular job.
maxParallelRequests |
|
get |
The name of the bucket that this job is transferring to.
|
get |
The id that allows the client to track job status and recover or delete jobs in the case of a failure during transfer.
Action<long> Ds3.Helpers.IBaseJob< TSelf, TItem >.DataTransferred |
Fires handlers with the amount of additional data that's been transferred when a part of a job is transferred.
Action<TItem> Ds3.Helpers.IBaseJob< TSelf, TItem >.ItemCompleted |
Fires handlers with the name of each transferred item as their transfers finish.