我们当前的代码使用 Azure SDK 1.8 并生成共享访问签名,它将首先调用CloudBlobContainer.GetBlobReference()
,然后调用CloudBlob.GetSharedAccessSignature()
. 其他操作CloudBlobContainer.GetBlobReference()
也是如此 - 首先是对 blob 对象的一些操作。
代码从不明确要求制作块 bobs 或页面 blob - 只有“只是 blob”。
现在我们需要迁移到 Azure SDK v2.4。界面发生了很大变化。现在有了
CloudBlobContainer.GetBlobReferenceFromServer()
,CloudBlobContainer.GetBlockBlobReference()
和CloudBlobContainer.GetPageBlobReference()
它们看起来完全一样。我们的存储中已经有很多 blob,宁愿让它们保持不变。
那么我们使用这三个中的哪一个?我们将以前创建的 blob 视为块 blob 还是页 blob?