mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-13 10:38:08 +00:00
Add caching to Storage.cs (#2102)
* Add caching to Storage.cs * make Storage disposable * make Storage disposable
This commit is contained in:
@ -85,7 +85,7 @@ public class Containers : IContainers {
|
||||
|
||||
var containerName = _config.OneFuzzStoragePrefix + container.ContainerName;
|
||||
|
||||
var containers = _storage.GetAccounts(storageType)
|
||||
var containers = _storage.GetAccounts(storageType).AsEnumerable()
|
||||
.Reverse()
|
||||
.Select(async account => (await GetBlobService(account))?.GetBlobContainerClient(containerName));
|
||||
|
||||
|
Reference in New Issue
Block a user