-
Notifications
You must be signed in to change notification settings - Fork 116
Change storage blob track1 to track2 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@jongio - Can you help ping the corresponding person to review this PR? |
|
@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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tg-msft - Updated.
| string a = blobContainer.Uri.ToString(); | ||
| if (blob.Properties.BlobType == BlobType.Block) | ||
| allBlobs.Add(new Uri(blobContainer.Uri.ToString()+"/"+blob.Name)); | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
|
@tg-msft We have updated, please re-review this PR. |
|
@tg-msft Could you please help merge this PR? |
Change storage blob track1 to track2