Enigmatry.Entry.BlobStorage 9.2.0

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

Blob Storage Library

A library that provides abstraction and implementation for storing and retrieving blobs (binary large objects) using various storage providers.

Intended Usage

Use this library when you need to store and manage binary data such as files, images, documents, or other media content.

Installation

Add the package to your project:

dotnet add package Enigmatry.Entry.BlobStorage

Usage Example

using System.IO;
using System.Threading.Tasks;
using System.Collections.Generic;
using Enigmatry.Entry.BlobStorage;

public class DocumentService
{
    private readonly IBlobStorage _blobStorage;
    
    public DocumentService(IBlobStorage blobStorage)
    {
        _blobStorage = blobStorage;
    }
    
    public async Task<string> UploadDocumentAsync(Stream documentStream, string fileName)
    {
        // The relative path where the blob will be stored
        string relativePath = $"documents/{fileName}";
        
        // Upload the blob to storage
        await _blobStorage.AddAsync(relativePath, documentStream, override: true);
        
        // Return the full resource path
        return _blobStorage.BuildResourcePath(relativePath);
    }
      public async Task<Stream> GetDocumentAsync(string relativePath)
    {
        // Check if the blob exists
        if (!await _blobStorage.ExistsAsync(relativePath))
        {
            throw new FileNotFoundException($"Document not found: {relativePath}");
        }
        
        // Retrieve the blob content as a stream
        return await _blobStorage.GetAsync(relativePath);
    }
    
    public async Task<bool> DeleteDocumentAsync(string relativePath)
    {
        // Delete the blob and return whether it was successfully deleted
        return await _blobStorage.RemoveAsync(relativePath);
    }
    
    public async Task<IEnumerable<Models.BlobDetails>> ListDocumentsAsync()
    {
        // List all blobs in the documents directory
        return await _blobStorage.GetListAsync("documents/*");
    }
}

Configuration Example

{
  "App": {
    "AzureBlobStorage": {
      "AccountName": "mystorageaccount",
      "AccountKey": "your-secret-account-key",
      "SasDuration": "01:00:00",
      "FileSizeLimit": 10485760,
      "CacheTimeout": 3600
    }
  }
}

Dependency Injection Example

using Enigmatry.Entry.BlobStorage.Azure;
using Microsoft.Extensions.DependencyInjection;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // Register a public Azure blob storage container
        services.AddEntryPublicAzBlobStorage("documents");
        
        // Or register a private Azure blob storage container
        services.AddEntryPrivateAzBlobStorage("private-documents");
    }
}
Product Compatible and additional computed target framework versions.
.NET 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
9.2.0 109 9/24/2025
9.1.1-preview.5 572 8/8/2025
9.1.1-preview.4 334 6/27/2025
9.1.1-preview.3 131 6/4/2025
9.1.0 306 6/3/2025
9.0.1-preview.8 133 5/26/2025
9.0.1-preview.7 216 5/13/2025
9.0.1-preview.6 109 5/9/2025
9.0.1-preview.5 131 5/7/2025
9.0.1-preview.4 130 4/30/2025
9.0.1-preview.2 132 4/1/2025
9.0.0 742 2/26/2025
8.2.0 108 9/24/2025
8.1.1-preview.3 411 5/7/2025
8.1.1-preview.1 138 4/1/2025
8.1.0 386 2/19/2025
8.0.1-preview.4 82 2/7/2025
8.0.1-preview.2 70 1/15/2025
8.0.0 366 11/27/2024
3.4.6-preview.10 74 11/27/2024
3.4.3 1,254 10/22/2024
3.4.2 255 10/11/2024
3.4.1 152 10/9/2024
3.4.0 143 10/9/2024
3.3.2 205 8/28/2024
3.3.2-preview.7 79 8/27/2024
3.3.1 188 7/16/2024
3.3.1-preview.4 76 7/12/2024
3.3.0 150 6/20/2024
3.2.1-preview.4 73 6/17/2024
3.2.1-preview.1 85 5/23/2024
3.2.0 3,542 4/3/2024
3.1.1-preview.1 85 3/13/2024
3.1.0 186 3/8/2024
3.1.0-preview.2 91 2/19/2024
3.0.1-preview.2 92 2/9/2024
3.0.1-preview.1 88 1/24/2024
3.0.0 965 1/15/2024
3.0.0-preview.14 96 1/9/2024
3.0.0-preview.12 82 1/9/2024
3.0.0-preview.5 82 1/10/2024
3.0.0-preview.2 114 12/28/2023
3.0.0-preview 140 12/20/2023
2.1.0 203 12/28/2023
2.0.1-preview.3 111 12/1/2023
2.0.1-preview.2 95 11/29/2023
2.0.1-preview.1 93 11/28/2023
2.0.0 435 11/8/2023
2.0.0-preview.3 117 10/27/2023
2.0.0-preview.2 95 10/27/2023
2.0.0-preview.1 100 10/27/2023
2.0.0-preview 157 10/27/2023
1.1.500 182 10/27/2023
1.1.495 193 9/24/2023
1.1.486 181 9/13/2023
1.1.484 211 9/7/2023
1.1.482 196 9/6/2023
1.1.480 211 8/24/2023
1.1.477 235 8/2/2023
1.1.464 1,772 7/5/2023
1.1.447 242 5/26/2023
1.1.396 350 4/11/2023
1.1.383 320 4/3/2023
1.1.377 335 3/13/2023
1.1.376 286 3/13/2023
1.1.365 855 2/15/2023