Class CopyFromUriOperation
An Operation<T> for tracking the status of a StartCopyFromUriAsync(Uri, IDictionary<String,String>, Nullable<AccessTier>, BlobRequestConditions, BlobRequestConditions, Nullable<RehydratePriority>, CancellationToken) request. Its Value upon succesful completion will be the number of bytes copied.
Namespace: Azure.Storage.Blobs.Models
Assembly: Azure.Storage.Blobs.dll
Syntax
public class CopyFromUriOperation : Azure.Operation<long>
Constructors
CopyFromUriOperation()
Initializes a new CopyFromUriOperation instance for mocking.
Declaration
protected CopyFromUriOperation ();
CopyFromUriOperation(String, BlobBaseClient)
Initializes a new CopyFromUriOperation instance
Declaration
public CopyFromUriOperation (string id, Azure.Storage.Blobs.Specialized.BlobBaseClient client);
Parameters
String
id
The ID of this operation. |
BlobBaseClient
client
The client used to check for completion. |
Properties
HasCompleted
Gets a value indicating whether the operation has completed.
Declaration
public override bool HasCompleted { get; }
Property Value
Boolean
|
HasValue
Gets a value indicating whether the operation completed and succesfully produced a value. The Value property is the number of bytes copied by the operation.
Declaration
public override bool HasValue { get; }
Property Value
Boolean
|
Id
Value
Gets the number of bytes copied by the operation.
Declaration
public override long Value { get; }
Property Value
Int64
|
Methods
GetRawResponse()
UpdateStatus(CancellationToken)
Check for the latest status of the copy operation.
Declaration
public override Azure.Response UpdateStatus (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled. |
Returns
Response
The Response with the status update. |
UpdateStatusAsync(CancellationToken)
Check for the latest status of the copy operation.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled. |
Returns
ValueTask<Response>
The Response with the status update. |
WaitForCompletionAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.ValueTask<Azure.Response<long>> WaitForCompletionAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
ValueTask<Response<Int64>>
|
WaitForCompletionAsync(TimeSpan, CancellationToken)
Declaration
public override System.Threading.Tasks.ValueTask<Azure.Response<long>> WaitForCompletionAsync (TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken);
Parameters
TimeSpan
pollingInterval
|
CancellationToken
cancellationToken
|
Returns
ValueTask<Response<Int64>>
|