From 61b13553eb11ee7aad3e7545f74bc66ee5342ded Mon Sep 17 00:00:00 2001 From: Julia Kornich Date: Wed, 18 Sep 2019 16:51:48 -0700 Subject: [PATCH] Update Program.cs --- .../MediaV3ConsoleApp/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NETCore/EncodeHTTPAndPublishAESEncrypted/MediaV3ConsoleApp/Program.cs b/NETCore/EncodeHTTPAndPublishAESEncrypted/MediaV3ConsoleApp/Program.cs index af58e22..6b4805d 100644 --- a/NETCore/EncodeHTTPAndPublishAESEncrypted/MediaV3ConsoleApp/Program.cs +++ b/NETCore/EncodeHTTPAndPublishAESEncrypted/MediaV3ConsoleApp/Program.cs @@ -446,8 +446,6 @@ private static async Task DownloadResults( string assetName, string outputFolderName) { - const int ListBlobsSegmentMaxResult = 5; - if (!Directory.Exists(outputFolderName)) { Directory.CreateDirectory(outputFolderName); @@ -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)