Enigmatry.Entry.BlobStorage
9.1.1-preview.4
This is a prerelease version of Enigmatry.Entry.BlobStorage.
dotnet add package Enigmatry.Entry.BlobStorage --version 9.1.1-preview.4
NuGet\Install-Package Enigmatry.Entry.BlobStorage -Version 9.1.1-preview.4
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.1.1-preview.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.BlobStorage" Version="9.1.1-preview.4" />
<PackageReference Include="Enigmatry.Entry.BlobStorage" />
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.1.1-preview.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Enigmatry.Entry.BlobStorage, 9.1.1-preview.4"
#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.1.1-preview.4
#: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.1.1-preview.4&prerelease
#tool nuget:?package=Enigmatry.Entry.BlobStorage&version=9.1.1-preview.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net9.0
- Azure.Storage.Blobs (>= 12.24.0)
- Enigmatry.Entry.Core (>= 9.1.1-preview.4)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.5)
- System.Text.Json (>= 9.0.5)
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.1.1-preview.4 | 221 | 6/27/2025 |
9.1.1-preview.3 | 124 | 6/4/2025 |
9.1.0 | 265 | 6/3/2025 |
9.0.1-preview.8 | 124 | 5/26/2025 |
9.0.1-preview.7 | 208 | 5/13/2025 |
9.0.1-preview.6 | 100 | 5/9/2025 |
9.0.1-preview.5 | 122 | 5/7/2025 |
9.0.1-preview.4 | 122 | 4/30/2025 |
9.0.1-preview.2 | 125 | 4/1/2025 |
9.0.0 | 635 | 2/26/2025 |
8.1.1-preview.3 | 403 | 5/7/2025 |
8.1.1-preview.1 | 131 | 4/1/2025 |
8.1.0 | 302 | 2/19/2025 |
8.0.1-preview.4 | 75 | 2/7/2025 |
8.0.1-preview.2 | 61 | 1/15/2025 |
8.0.0 | 345 | 11/27/2024 |
3.4.6-preview.10 | 66 | 11/27/2024 |
3.4.3 | 1,226 | 10/22/2024 |
3.4.2 | 233 | 10/11/2024 |
3.4.1 | 130 | 10/9/2024 |
3.4.0 | 121 | 10/9/2024 |
3.3.2 | 184 | 8/28/2024 |
3.3.2-preview.7 | 70 | 8/27/2024 |
3.3.1 | 168 | 7/16/2024 |
3.3.1-preview.4 | 66 | 7/12/2024 |
3.3.0 | 139 | 6/20/2024 |
3.2.1-preview.4 | 67 | 6/17/2024 |
3.2.1-preview.1 | 78 | 5/23/2024 |
3.2.0 | 3,520 | 4/3/2024 |
3.1.1-preview.1 | 78 | 3/13/2024 |
3.1.0 | 163 | 3/8/2024 |
3.1.0-preview.2 | 85 | 2/19/2024 |
3.0.1-preview.2 | 86 | 2/9/2024 |
3.0.1-preview.1 | 82 | 1/24/2024 |
3.0.0 | 945 | 1/15/2024 |
3.0.0-preview.14 | 90 | 1/9/2024 |
3.0.0-preview.12 | 75 | 1/9/2024 |
3.0.0-preview.5 | 76 | 1/10/2024 |
3.0.0-preview.2 | 107 | 12/28/2023 |
3.0.0-preview | 120 | 12/20/2023 |
2.1.0 | 182 | 12/28/2023 |
2.0.1-preview.3 | 105 | 12/1/2023 |
2.0.1-preview.2 | 88 | 11/29/2023 |
2.0.1-preview.1 | 87 | 11/28/2023 |
2.0.0 | 419 | 11/8/2023 |
2.0.0-preview.3 | 111 | 10/27/2023 |
2.0.0-preview.2 | 88 | 10/27/2023 |
2.0.0-preview.1 | 94 | 10/27/2023 |
2.0.0-preview | 140 | 10/27/2023 |
1.1.500 | 165 | 10/27/2023 |
1.1.495 | 174 | 9/24/2023 |
1.1.486 | 163 | 9/13/2023 |
1.1.484 | 186 | 9/7/2023 |
1.1.482 | 172 | 9/6/2023 |
1.1.480 | 185 | 8/24/2023 |
1.1.477 | 208 | 8/2/2023 |
1.1.464 | 1,742 | 7/5/2023 |
1.1.447 | 210 | 5/26/2023 |
1.1.396 | 330 | 4/11/2023 |
1.1.383 | 289 | 4/3/2023 |
1.1.377 | 305 | 3/13/2023 |
1.1.376 | 253 | 3/13/2023 |
1.1.365 | 822 | 2/15/2023 |