Reputation: 7949
I'm trying to obtain a list of all containers within an Azure Storage blob client using WindowsAzure.Storage
v8.5.0.
MSDN doesn't offer documentation for v8.5.0 - its latest is v8.4.0, but even if I downgrade to this version I still have the same problem: MSDN says that there's a ListContainers
method, but intellisense in Visual Studio says there isn't, and I get a build error if I insist on trying to call such a method.
I've checked and the version of the assembly in the \bin directory is v8.5.0 (and v8.4.0, when I try that)
I've used .NET Reflector to look inside the packages and can find no such method.
So what has happened to ListContainers
, and if it's been removed then how else can I list all containers?
Upvotes: 1
Views: 786
Reputation: 136186
.Net Core version of Storage Client library does not support synchronous methods as of today. There's an open ticket on Github for that: https://github.com/Azure/azure-storage-net/issues/367.
To list containers, you will need to use Async methods. Please use ListContainersSegmentedAsync
method for this purpose.
Upvotes: 1