Microsoft.WindowsAzure.Commands.Sync.Download.BlobHandle.BlobHandle C# (CSharp) Method

BlobHandle() public method

public BlobHandle ( BlobUri blobUri, string storageAccountKey ) : Microsoft.WindowsAzure.Commands.Sync.Upload
blobUri BlobUri
storageAccountKey string
return Microsoft.WindowsAzure.Commands.Sync.Upload
        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);
        }