Cirreum.Storage.Azure 1.0.8

dotnet add package Cirreum.Storage.Azure --version 1.0.8
                    
NuGet\Install-Package Cirreum.Storage.Azure -Version 1.0.8
                    
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="Cirreum.Storage.Azure" Version="1.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cirreum.Storage.Azure" Version="1.0.8" />
                    
Directory.Packages.props
<PackageReference Include="Cirreum.Storage.Azure" />
                    
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 Cirreum.Storage.Azure --version 1.0.8
                    
#r "nuget: Cirreum.Storage.Azure, 1.0.8"
                    
#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 Cirreum.Storage.Azure@1.0.8
                    
#: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=Cirreum.Storage.Azure&version=1.0.8
                    
Install as a Cake Addin
#tool nuget:?package=Cirreum.Storage.Azure&version=1.0.8
                    
Install as a Cake Tool

Cirreum.Storage.Azure

NuGet Version NuGet Downloads GitHub Release License .NET

Azure Blob Storage implementation for the Cirreum Storage abstraction

Overview

Cirreum.Storage.Azure provides a robust Azure Blob Storage implementation of the Cirreum Storage abstraction, enabling seamless cloud storage operations with automatic service registration, health monitoring, and flexible configuration options.

Features

  • Unified Storage Interface: Implements ICloudStorageClient for consistent storage operations across cloud providers
  • Automatic Registration: Service provider pattern with configuration-driven auto-registration
  • Flexible Authentication: Supports both connection strings and URI-based configuration with DefaultAzureCredential
  • Health Monitoring: Built-in health checks with configurable options and memory caching
  • Multi-tenant Support: Keyed service registration for multiple storage accounts
  • Comprehensive Operations: Full blob lifecycle management including upload, download, metadata, tags, and leasing

Installation

dotnet add package Cirreum.Storage.Azure

Quick Start

Configuration

Add Azure Blob Storage configuration to your appsettings.json:

{
  "ServiceProviders": {
    "Storage": {
      "Azure": {
        "Default": {
          "ConnectionString": "your-connection-string-or-uri"
        }
      }
    }
  }
}

Registration

var builder = WebApplication.CreateBuilder(args);

// Register all configured service providers
builder.Services.AddServiceProviders(builder.Configuration);

var app = builder.Build();

Usage

public class FileService
{
    private readonly ICloudStorageClient _storageClient;

    public FileService(ICloudStorageClient storageClient)
    {
        _storageClient = storageClient;
    }

    public async Task<string?> UploadFileAsync(string containerId, string fileName, string filePath)
    {
        await _storageClient.CreateIfNotExistsAsync(containerId);
        return await _storageClient.UploadFileAsync(containerId, fileName, filePath, overwrite: true);
    }

    public async Task<bool> FileExistsAsync(string containerId, string fileName)
    {
        return await _storageClient.ExistsAsync(containerId, fileName);
    }
}

## Advanced Configuration

### Multiple Storage Accounts

```json
{
  "ServiceProviders": {
    "Storage": {
      "Azure": {
        "Primary": {
          "ConnectionString": "primary-storage-connection-string"
        },
        "Backup": {
          "ConnectionString": "backup-storage-connection-string"
        }
      }
    }
  }
}
// Inject specific storage client
public class FileService
{
    private readonly ICloudStorageClient _primaryStorage;
    private readonly ICloudStorageClient _backupStorage;

    public FileService(
        [FromKeyedServices("Primary")] ICloudStorageClient primaryStorage,
        [FromKeyedServices("Backup")] ICloudStorageClient backupStorage)
    {
        _primaryStorage = primaryStorage;
        _backupStorage = backupStorage;
    }
}

URI-based Configuration with Managed Identity

{
  "ServiceProviders": {
    "Storage": {
      "Azure": {
        "Default": {
          "ConnectionString": "https://yourstorageaccount.blob.core.windows.net"
        }
      }
    }
  }
}

Health Check Configuration

{
  "ServiceProviders": {
    "Storage": {
      "Azure": {
        "Default": {
          "ConnectionString": "your-connection-string",
          "HealthOptions": {
            "ContainerName": "health-check-container",
            "BlobName": "health-check.txt",
            "Content": "health check content"
          }
        }
      }
    }
  }
}

Contribution Guidelines

  1. Be conservative with new abstractions
    The API surface must remain stable and meaningful.

  2. Limit dependency expansion
    Only add foundational, version-stable dependencies.

  3. Favor additive, non-breaking changes
    Breaking changes ripple through the entire ecosystem.

  4. Include thorough unit tests
    All primitives and patterns should be independently testable.

  5. Document architectural decisions
    Context and reasoning should be clear for future maintainers.

  6. Follow .NET conventions
    Use established patterns from Microsoft.Extensions.* libraries.

Versioning

{REPO-NAME} follows Semantic Versioning:

  • Major - Breaking API changes
  • Minor - New features, backward compatible
  • Patch - Bug fixes, backward compatible

Given its foundational role, major version bumps are rare and carefully considered.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Cirreum Foundation Framework
Layered simplicity for modern .NET

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on Cirreum.Storage.Azure:

Package Downloads
Cirreum.Runtime.Storage

The Runtime Storage service configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.8 38 3/6/2026
1.0.7 105 1/22/2026
1.0.6 101 1/21/2026
1.0.5 109 1/11/2026
1.0.3 134 12/20/2025
1.0.2 309 12/16/2025
1.0.1 215 11/24/2025
1.0.0 295 11/21/2025