AzureStorageClient 1.1.2
See the version list below for details.
dotnet add package AzureStorageClient --version 1.1.2
NuGet\Install-Package AzureStorageClient -Version 1.1.2
<PackageReference Include="AzureStorageClient" Version="1.1.2" />
<PackageVersion Include="AzureStorageClient" Version="1.1.2" />
<PackageReference Include="AzureStorageClient" />
paket add AzureStorageClient --version 1.1.2
#r "nuget: AzureStorageClient, 1.1.2"
#:package AzureStorageClient@1.1.2
#addin nuget:?package=AzureStorageClient&version=1.1.2
#tool nuget:?package=AzureStorageClient&version=1.1.2
Introduction
Project to handle all interaction between Data2Track applications and the Azure Storage service. With this class library it will be easier to mantain the code for Azure connection in other projects.
Requirements
To run/debug this project its important to have .NET 7 installed.
Azure Storage service
The following Azure Storage serivces are supported in this project:
- Azure Table Storage
- Azure Blob Storage
- Azure Queue Storage
Azure environments
- Producation
- Test
- RawData
- Local
Implementation in other projects
This class library is made to make life easier in other projects. To implement this in another project the following steps are required
Install the nuget package
Go to the nuget package manager of the project and search for "AzureStorageClient"
User secrets
Add user secrets to the project. The following section should be included:
"AzureConnectionConfiguration": {
"LocalConnectionString": "",
"ProductionConnectionString": "",
"TestConnectionString": "",
"RawDataConnectionString": ""
}
if the project is gonna be deployed to a Function App its important to configure the application settings. This can be done the following way: click new application setting:
Name AzureConnectionConfiguration:TestConnectionString example
Value "connectionstring for the storage account"
This has to be handled different compared to the local developement. The reason for this is the way a production environment handles appsettings.
Startup
To use the package in a Azure Function project (V4 isolated), the options must be loaded inside the ConfigureService method and the AzureTableService must be injected with dependency injection. See the following example
services.AddOptions<AzureConnectionConfiguration>().Configure<IConfiguration>((settings, config) =>
{
config.GetSection("AzureConnectionConfiguration").Bind(settings);
});
services.AddScoped<IAzureTableService, AzureTableService>();
Usage in service
To use the service(s) it first must be injected into the service/feature that wants to use Azure Storage services. See the following example.
using AzureStorageClient.Services.Interfaces;
using AzureStorageClient.Models;
private readonly IAzureTableService _azureTableService
public SomeClass(IAzureTableService azureTableService)
{
_azureTableService = azureTableService;
}
public async Task<Entity> GetEntity()
{
string filter = "PartitionKey eq 'SOME PARTITIONKEY' and RowKey eq 'SOME ROWKEY'";
return await _azureTableService.GetEntity(filter, tableName, CloudStorageEnvironment.Local);
}
Usage of the AzureTableService
To use the example from 4. it is required to have a class that repesents the object in the table. This class needs to extend from the class AzureTableEntity (which comes included in with this package in the AzureStorageClient.Models namespace).
public class SomeClass : AzureTableEntity
{
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Azure.Data.Tables (>= 12.8.2)
- Azure.Identity (>= 1.10.4)
- Azure.Storage.Blobs (>= 12.19.1)
- Azure.Storage.Queues (>= 12.17.1)
- Microsoft.Extensions.Options (>= 8.0.0)
- System.Linq.Async (>= 6.0.1)
-
net7.0
- Azure.Data.Tables (>= 12.8.2)
- Azure.Identity (>= 1.10.4)
- Azure.Storage.Blobs (>= 12.19.1)
- Azure.Storage.Queues (>= 12.17.1)
- Microsoft.Extensions.Options (>= 8.0.0)
- System.Linq.Async (>= 6.0.1)
-
net8.0
- Azure.Data.Tables (>= 12.8.2)
- Azure.Identity (>= 1.10.4)
- Azure.Storage.Blobs (>= 12.19.1)
- Azure.Storage.Queues (>= 12.17.1)
- Microsoft.Extensions.Options (>= 8.0.0)
- System.Linq.Async (>= 6.0.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on AzureStorageClient:
| Package | Downloads |
|---|---|
|
FleetControlIdConverter
Converter for ID's between FleetControl V1 and V2 |
|
|
D2TIndex
Package to get information from the index tables |
|
|
D2tOdometer
Package Description |
|
|
FleetControlLoggingService
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.3.2 | 463 | 11/12/2025 | |
| 1.3.1 | 449 | 11/11/2025 | |
| 1.3.0 | 444 | 8/5/2025 | |
| 1.2.4 | 298 | 4/18/2025 | |
| 1.2.3 | 881 | 12/18/2024 | |
| 1.2.2 | 563 | 11/21/2024 | |
| 1.2.0 | 477 | 9/18/2024 | |
| 1.1.2 | 2,053 | 12/21/2023 | |
| 1.1.1 | 829 | 4/18/2023 | |
| 1.1.0 | 388 | 4/3/2023 | |
| 1.0.14 | 589 | 2/7/2023 | |
| 1.0.13 | 351 | 2/7/2023 | |
| 1.0.12 | 601 | 11/30/2022 | |
| 1.0.11 | 752 | 8/4/2022 | |
| 1.0.10 | 506 | 8/4/2022 | |
| 1.0.9 | 638 | 7/5/2022 | |
| 1.0.8 | 519 | 7/5/2022 | |
| 1.0.7 | 520 | 7/5/2022 | |
| 1.0.6 | 541 | 7/4/2022 | |
| 1.0.0-build | 190 | 11/30/2022 |