public BlobHandle(BlobUri blobUri, string storageAccountKey)
{
this.blobUri = blobUri;
this.storageAccountKey = storageAccountKey;
var blobClient = new CloudBlobClient(new Uri(this.blobUri.BaseUri), new StorageCredentials(this.blobUri.StorageAccountName, this.storageAccountKey));
this.container = blobClient.GetContainerReference(this.blobUri.BlobContainerName);
this.container.FetchAttributes();
this.pageBlob = this.container.GetPageBlobReference(blobUri.BlobName);
this.blobRequestOptions = new BlobRequestOptions
{
ServerTimeout = TimeSpan.FromMinutes(5),
RetryPolicy = new LinearRetry(TimeSpan.FromMinutes(1), 3)
};
this.pageBlob.FetchAttributes(new AccessCondition(), blobRequestOptions);
}