Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliako authored Sep 18, 2019
1 parent fef9314 commit 61b1355
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ private static async Task DownloadResults(
string assetName,
string outputFolderName)
{
const int ListBlobsSegmentMaxResult = 5;

if (!Directory.Exists(outputFolderName))
{
Directory.CreateDirectory(outputFolderName);
Expand All @@ -473,6 +471,11 @@ private static async Task DownloadResults(

do
{
// A non-negative integer value that indicates the maximum number of results to be returned at a time,
// up to the per-operation limit of 5000. If this value is null, the maximum possible number of results
// will be returned, up to 5000.
int? ListBlobsSegmentMaxResult = null;

BlobResultSegment segment = await container.ListBlobsSegmentedAsync(null, true, BlobListingDetails.None, ListBlobsSegmentMaxResult, continuationToken, null, null);

foreach (IListBlobItem blobItem in segment.Results)
Expand Down

0 comments on commit 61b1355

Please sign in to comment.