TransactR.AzureTableStorage 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TransactR.AzureTableStorage --version 0.2.0
                    
NuGet\Install-Package TransactR.AzureTableStorage -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TransactR.AzureTableStorage" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TransactR.AzureTableStorage" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TransactR.AzureTableStorage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TransactR.AzureTableStorage --version 0.2.0
                    
#r "nuget: TransactR.AzureTableStorage, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TransactR.AzureTableStorage@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TransactR.AzureTableStorage&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=TransactR.AzureTableStorage&version=0.2.0
                    
Install as a Cake Tool

TransactR.AzureTableStorage

TransactR.AzureTableStorage is a library that provides an IMementoStore implementation using Azure Table Storage. It's a highly performant and cost-effective solution for persisting mementos in large-scale applications.

Installation

First, install the NuGet package into your project.

dotnet add package TransactR.AzureTableStorage

Configuration

To use the AzureTableStorageMementoStore, you need to configure it in your Program.cs or Startup.cs file.

You need to provide the Azure Storage account connection string.

// Program.cs
builder.Services.AddAzureTableStorageMementoStore<IlMioStato, int>(
    builder.Configuration.GetConnectionString("AzureStorageConnectionString"),
    tableName: "mementos"
);

Note: The tableName parameter is optional and defaults to "mementos".

Usage Example

After configuring the service, you can inject IMementoStore<IlMioStato, int> into your services or controllers to save and retrieve mementos.

public class IlMioServizio
{
    private readonly IMementoStore<IlMioStato, int> _mementoStore;

    public IlMioServizio(IMementoStore<IlMioStato, int> mementoStore)
    {
        _mementoStore = mementoStore;
    }

    public async Task EseguiOperazioneAsync(string transactionId, IlMioStato stato)
    {
        // Save a new memento
        await _mementoStore.SaveAsync(transactionId, 1, stato);

        // Retrieve a memento
        var mementoRecuperato = await _mementoStore.RetrieveAsync(transactionId, 1);
        
        // Remove a memento
        await _mementoStore.RemoveAsync(transactionId, 1);
    }
}
Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.3.2 18 9/9/2025
0.3.1 28 9/9/2025
0.3.0 26 9/9/2025
0.2.3 25 9/9/2025
0.2.2 37 9/8/2025
0.2.0 81 9/5/2025
0.1.11 130 9/1/2025
0.1.10 125 9/1/2025
0.1.9 120 9/1/2025
0.1.8 127 9/1/2025