diff --git a/NETCore/EncodeHTTP/MediaV3ConsoleApp/Program.cs b/NETCore/EncodeHTTP/MediaV3ConsoleApp/Program.cs index 6c32aa1..33149db 100644 --- a/NETCore/EncodeHTTP/MediaV3ConsoleApp/Program.cs +++ b/NETCore/EncodeHTTP/MediaV3ConsoleApp/Program.cs @@ -264,8 +264,6 @@ private static async Task DownloadResults( string assetName, string outputFolderName) { - const int ListBlobsSegmentMaxResult = 5; - if (!Directory.Exists(outputFolderName)) { Directory.CreateDirectory(outputFolderName); @@ -291,6 +289,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)