public virtual CloudBlockBlobEx GetBlockBlobReference(string blobName, DateTimeOffset?snapshotTime) { if (blobName == null) { throw new ArgumentNullException(nameof(blobName)); } CloudBlockBlob[] cloudBlockBlobArray = new CloudBlockBlob[this.failoverExecutor.AllElements.Length]; for (int i = 0; i < this.failoverExecutor.AllElements.Length; i++) { CloudBlobContainer container = this.failoverExecutor.AllElements[i]; CloudBlockBlob cloudBlockBlob = container.GetBlockBlobReference(blobName, snapshotTime); cloudBlockBlobArray[i] = cloudBlockBlob; } CloudBlockBlobEx cloudBlockBlobEx = new CloudBlockBlobEx(this, this.failoverExecutor.FailoverToken, cloudBlockBlobArray); return(cloudBlockBlobEx); }
public virtual CloudBlockBlobEx GetBlockBlobReference(string blobName) { if (blobName == null) { throw new ArgumentNullException(nameof(blobName)); } CloudBlockBlob[] cloudBlockBlobArray = new CloudBlockBlob[this.failoverExecutor.AllElements.Length]; for (int i = 0; i < this.failoverExecutor.AllElements.Length; i++) { CloudBlobDirectory directory = this.failoverExecutor.AllElements[i]; CloudBlockBlob cloudBlockBlob = directory.GetBlockBlobReference(blobName); cloudBlockBlobArray[i] = cloudBlockBlob; } CloudBlockBlobEx cloudBlockBlobEx = new CloudBlockBlobEx(this.Container, this.failoverExecutor.FailoverToken, cloudBlockBlobArray); return(cloudBlockBlobEx); }