AuroraScienceHub.Framework.Blobs
10.0.5
Prefix Reserved
dotnet add package AuroraScienceHub.Framework.Blobs --version 10.0.5
NuGet\Install-Package AuroraScienceHub.Framework.Blobs -Version 10.0.5
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="AuroraScienceHub.Framework.Blobs" Version="10.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuroraScienceHub.Framework.Blobs" Version="10.0.5" />
<PackageReference Include="AuroraScienceHub.Framework.Blobs" />
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 AuroraScienceHub.Framework.Blobs --version 10.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AuroraScienceHub.Framework.Blobs, 10.0.5"
#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 AuroraScienceHub.Framework.Blobs@10.0.5
#: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=AuroraScienceHub.Framework.Blobs&version=10.0.5
#tool nuget:?package=AuroraScienceHub.Framework.Blobs&version=10.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AuroraScienceHub.Framework.Blobs
Unified blob storage abstraction with S3-compatible storage support (MinIO, AWS S3).
Overview
Provides a clean interface for working with binary large objects (BLOBs) using S3-compatible storage systems.
Key Features
- S3 Compatible - Works with MinIO, AWS S3, and other S3-compatible storages
- Unified Interface - Single
IBlobClientabstraction for all operations - Streaming Support - Efficient memory handling for large files
- Metadata Support - Store and retrieve custom key-value metadata
- Content Type Resolution - Automatic MIME type detection
Installation
dotnet add package AuroraScienceHub.Framework.Blobs
Usage
Configuration
{
"S3": {
"ServerUrl": "http://localhost:9000",
"AccessKey": "minioadmin",
"SecretKey": "minioadmin",
"Bucket": "default-bucket",
"UseHttps": false
}
}
Service Registration
builder.Services.AddS3Blobs();
Basic Operations
public class FileService
{
private readonly IBlobClient _blobClient;
// Upload file
public async Task<BlobId> UploadAsync(Stream stream, string fileName)
{
return await _blobClient.AddFileAsync(fileName, stream, "application/pdf");
}
// Download file
public async Task<byte[]> DownloadAsync(BlobId blobId)
{
var (metadata, content) = await _blobClient.GetAsync(blobId);
return content;
}
// Stream large files
public async Task StreamToFileAsync(BlobId blobId, string path)
{
await using var content = await _blobClient.GetStreamAsync(blobId);
await using var file = File.Create(path);
await content.Stream.CopyToAsync(file);
}
// Check existence
public async Task<bool> ExistsAsync(BlobId blobId)
{
return await _blobClient.ExistsAsync(blobId);
}
}
| Product | Versions 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.
-
net10.0
- AuroraScienceHub.Framework.ValueObjects (>= 10.0.5)
- AWSSDK.S3 (>= 4.0.14)
- Microsoft.Extensions.Configuration (>= 10.0.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.