public static ResolveBlobName ( string blobName ) : string | ||
blobName | string | |
Результат | string |
public Tuple <string, ICloudBlob> DequeueRequest() { string filePath = Requests.Dequeue(); string blobName = string.Empty; if (!string.IsNullOrEmpty(BlobName)) { blobName = BlobName; } else { blobName = filePath.Substring(root.Length); } blobName = NameUtil.ResolveBlobName(blobName); ICloudBlob blob = default(ICloudBlob); switch (Type) { case BlobType.PageBlob: blob = Container.GetPageBlobReference(blobName); break; case BlobType.BlockBlob: default: blob = Container.GetBlockBlobReference(blobName); break; } return(new Tuple <string, ICloudBlob>(filePath, blob)); }
public Tuple <string, CloudBlob> DequeueRequest() { string filePath = Requests.Dequeue(); string blobName = string.Empty; if (!string.IsNullOrEmpty(BlobName)) { blobName = BlobName; } else { blobName = filePath.Substring(root.Length); } blobName = NameUtil.ResolveBlobName(blobName); CloudBlob blob = Util.GetBlobReference(Container, blobName, Type); return(new Tuple <string, CloudBlob>(filePath, blob)); }