Devlooped.CloudStorageAccount.Source
1.0.1-beta
Prefix Reserved
See the version list below for details.
dotnet add package Devlooped.CloudStorageAccount.Source --version 1.0.1-beta
NuGet\Install-Package Devlooped.CloudStorageAccount.Source -Version 1.0.1-beta
<PackageReference Include="Devlooped.CloudStorageAccount.Source" Version="1.0.1-beta" />
paket add Devlooped.CloudStorageAccount.Source --version 1.0.1-beta
#r "nuget: Devlooped.CloudStorageAccount.Source, 1.0.1-beta"
// Install Devlooped.CloudStorageAccount.Source as a Cake Addin #addin nuget:?package=Devlooped.CloudStorageAccount.Source&version=1.0.1-beta&prerelease // Install Devlooped.CloudStorageAccount.Source as a Cake Tool #tool nuget:?package=Devlooped.CloudStorageAccount.Source&version=1.0.1-beta&prerelease
The new unified Azure Storage and Tables client libraries do away with the CloudStorageAccount that was typically used. This makes migration a bit painful, as noted in:
- Azure.Data.Tables migration guide
- Azure.Storage.Blobs migration guide
This package provides a (mostly) drop-in replacement, with source code brought (and updated)
from the original location.
Just replace the old namespace Microsoft.Azure.Storage
with Devlooped
and you're mostly done.
In addition to the legacy, backwards-compatible APIs so projects compile right away with this package when upgrading to v12 client libraries, there are a few newer APIs that are more aligned with the new APIs, such as:
- CloudStorageAccount.CreateBlobServiceClient (extension method)
- CloudStorageAccount.CreateQueueServiceClient (extension method)
- CloudStorageAccount.CreateTableServiceClient (extension method)
These make it more explicit that you're creating instances of the new service clients.
Usage
var account = CloudStorageAccount.DevelopmentStorageAccount;
var tableService = account.CreateTableServiceClient();
// legacy invocation works too: account.CreateCloudTableClient();
// Can also access the endpoints for each service:
Console.WriteLine(account.BlobEndpoint);
Console.WriteLine(account.QueueEndpoint);
Console.WriteLine(account.TableEndpoint);
Visibily
This source-only package provides all types as partial and without an explicit visibility. This allows you to decide whether you want to make the types a public part of your project's API surface or not. Should you decide to make types public, you can use the approach used to compile the binary version as a template:
namespace Devlooped;
public partial class BlobAccountExtensions { }
public partial class CloudStorageAccount { }
public partial class QueueAccountExtensions { }
public partial class StorageCredentials { }
public partial class TableAccountExtensions { }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Azure.Data.Tables (>= 12.0.0)
- Azure.Identity (>= 1.6.0)
- Azure.Storage.Blobs (>= 12.0.0)
- Azure.Storage.Queues (>= 12.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.3.0 | 75 | 10/22/2024 |
1.2.0 | 422 | 8/11/2023 |
1.0.2 | 300 | 1/20/2023 |
1.0.1 | 353 | 4/26/2022 |
1.0.1-beta | 371 | 4/26/2022 |