88using Microsoft . AspNetCore . Http ;
99using Microsoft . AspNetCore . Http . Extensions ;
1010using Microsoft . Extensions . Options ;
11- using Microsoft . IO ;
1211using SixLabors . ImageSharp . Web . Resolvers ;
1312using SixLabors . ImageSharp . Web . Resolvers . Azure ;
1413
@@ -35,12 +34,6 @@ private readonly Dictionary<string, BlobContainerClient> containers
3534 /// </summary>
3635 private readonly AzureBlobStorageImageProviderOptions storageOptions ;
3736
38- /// <summary>
39- /// The recyclable memorystream manager used for managing pooled stream
40- /// buffers independently from image buffer pooling.
41- /// </summary>
42- private readonly RecyclableMemoryStreamManager memoryStreamManager ;
43-
4437 /// <summary>
4538 /// Contains various helper methods based on the current configuration.
4639 /// </summary>
@@ -55,21 +48,14 @@ private readonly Dictionary<string, BlobContainerClient> containers
5548 /// Initializes a new instance of the <see cref="AzureBlobStorageImageProvider"/> class.
5649 /// </summary>
5750 /// <param name="storageOptions">The blob storage options.</param>
58- /// <param name="memoryStreamManager">
59- /// The recyclable memorystream manager used for managing pooled stream
60- /// buffers independently from image buffer pooling.
61- /// </param>
6251 /// <param name="formatUtilities">Contains various format helper methods based on the current configuration.</param>
6352 public AzureBlobStorageImageProvider (
6453 IOptions < AzureBlobStorageImageProviderOptions > storageOptions ,
65- RecyclableMemoryStreamManager memoryStreamManager ,
6654 FormatUtilities formatUtilities )
6755 {
6856 Guard . NotNull ( storageOptions , nameof ( storageOptions ) ) ;
69- Guard . NotNull ( memoryStreamManager , nameof ( memoryStreamManager ) ) ;
7057
7158 this . storageOptions = storageOptions . Value ;
72- this . memoryStreamManager = memoryStreamManager ;
7359 this . formatUtilities = formatUtilities ;
7460
7561 foreach ( AzureBlobContainerClientOptions container in this . storageOptions . BlobContainers )
@@ -136,7 +122,7 @@ public async Task<IImageResolver> GetAsync(HttpContext context)
136122 return null ;
137123 }
138124
139- return new AzureBlobStorageImageResolver ( blob , this . memoryStreamManager ) ;
125+ return new AzureBlobStorageImageResolver ( blob ) ;
140126 }
141127
142128 /// <inheritdoc/>
0 commit comments