Skip to content

Conversation

@Luyunmt
Copy link
Contributor

@Luyunmt Luyunmt commented Aug 26, 2020

Change storage blob track1 to track2

@Luyunmt Luyunmt marked this pull request as ready for review January 4, 2021 08:25
@v-xuto
Copy link

v-xuto commented May 13, 2021

@jongio - Can you help ping the corresponding person to review this PR?

@v-xuto
Copy link

v-xuto commented Aug 31, 2021

@scottaddie, @AlexGhiondea, @kyle-patterson , @tg-msft, @amishra-dev - Could you help review this PR?

// to allow public access to blobs in this container. Comment the line below to not use this approach and to use SAS. Then you can view the image
// using: https://[InsertYourStorageAccountNameHere].blob.core.windows.net/webappstoragedotnet-imagecontainer/FileName
await blobContainer.SetPermissionsAsync(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob });
await blobContainer.SetAccessPolicyAsync(PublicAccessType.Blob);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just pass PublicAccessType.Blob into CreateIfNotExistsAsync. It'll teach people better patterns.

Copy link
Contributor

@Tianyun-G Tianyun-G Sep 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tg-msft - Updated.

Comment on lines 79 to 82
string a = blobContainer.Uri.ToString();
if (blob.Properties.BlobType == BlobType.Block)
allBlobs.Add(new Uri(blobContainer.Uri.ToString()+"/"+blob.Name));
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do blobContainer.GetBlob(blob.Name).Uri instead of all this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@v-xuto
Copy link

v-xuto commented Sep 6, 2021

@tg-msft We have updated, please re-review this PR.

@v-xuto
Copy link

v-xuto commented Oct 9, 2021

@tg-msft Could you please help merge this PR?

@jongio jongio merged commit 69d6791 into Azure-Samples:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants