DKNet.Svc.BlobStorage.AwsS3
13.2.2
See the version list below for details.
dotnet add package DKNet.Svc.BlobStorage.AwsS3 --version 13.2.2
NuGet\Install-Package DKNet.Svc.BlobStorage.AwsS3 -Version 13.2.2
<PackageReference Include="DKNet.Svc.BlobStorage.AwsS3" Version="13.2.2" />
<PackageVersion Include="DKNet.Svc.BlobStorage.AwsS3" Version="13.2.2" />
<PackageReference Include="DKNet.Svc.BlobStorage.AwsS3" />
paket add DKNet.Svc.BlobStorage.AwsS3 --version 13.2.2
#r "nuget: DKNet.Svc.BlobStorage.AwsS3, 13.2.2"
#:package DKNet.Svc.BlobStorage.AwsS3@13.2.2
#addin nuget:?package=DKNet.Svc.BlobStorage.AwsS3&version=13.2.2
#tool nuget:?package=DKNet.Svc.BlobStorage.AwsS3&version=13.2.2
DKNet.Svc.BlobStorage.AwsS3
AWS S3 (and S3-compatible services such as MinIO or Cloudflare R2) implementation of IBlobService from
DKNet.Svc.BlobStorage.Abstractions.
Features
S3BlobService— fullIBlobServiceimplementation over the AWS SDK- Creates the configured bucket on first use if it does not exist
- Pre-signed public URLs (
GetPublicAccessUrl), default 1-hour expiry ForcePathStyle/DisablePayloadSigningoptions for MinIO and other S3-compatible endpoints
Installation
dotnet add package DKNet.Svc.BlobStorage.AwsS3
Quick Start
// appsettings.json
{
"BlobService": {
"S3": {
"ConnectionString": "https://s3.ap-southeast-1.amazonaws.com",
"BucketName": "app-documents"
}
}
}
using DKNet.Svc.BlobStorage.Abstractions;
using DKNet.Svc.BlobStorage.AwsS3;
builder.Services.AddS3BlobService(builder.Configuration); // binds "BlobService:S3"
public sealed class ReportStorage(IBlobService blobService)
{
public Task<string> SaveAsync(Stream pdf, CancellationToken ct) =>
blobService.SaveAsync(new BlobDetails.BlobData("reports/monthly.pdf", BinaryData.FromStream(pdf)), ct);
}
AddS3BlobService(IServiceCollection, IConfiguration) is the only registration entry point. It binds
S3Options from the section named by S3Options.Name and registers IBlobService → S3BlobService as
Scoped; the call is idempotent.
Configuration — S3Options
S3Options extends BlobServiceOptions, so IncludedExtensions, MaxFileNameLength, and MaxFileSizeInMb
apply here unchanged (see the Abstractions package).
| Option | Type | Default | Effect |
|---|---|---|---|
ConnectionString |
string |
(required) | S3 service endpoint URL, used as the SDK's ServiceURL. A value that does not start with https switches the client to plain HTTP. |
BucketName |
string |
(required) | Target bucket. Created on first use when missing. |
AccessKey |
string? |
null |
With Secret, selects BasicAWSCredentials; leave both unset to use the ambient AWS credential chain. |
Secret |
string? |
null |
Paired with AccessKey. |
RegionEndpointName |
string? |
"us-east-1" |
Declared but never applied to the client — encode the region in ConnectionString. |
ForcePathStyle |
bool |
false |
true uses endpoint/bucket/key addressing; required by MinIO and most S3-compatible services. |
DisablePayloadSigning |
bool |
false |
Passed to PutObject; needed by some S3-compatible endpoints. |
S3Options.Name (static) |
string |
"BlobService:S3" |
The configuration section AddS3BlobService binds from. |
Per-call settings live on the request: BlobDetails.BlobData.Overwrite (default false) and
GetPublicAccessUrl(..., expiresFromNow) (default TimeSpan.FromHours(1)).
Documentation
Full feature reference, diagrams, and gotchas: https://github.com/baoduy/DKNet/blob/main/docs/Services/DKNet.Svc.BlobStorage.AwsS3.md
| 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. |
-
net10.0
- AWSSDK.Core (>= 4.0.102.5)
- AWSSDK.S3 (>= 4.0.103.2)
- DKNet.Svc.BlobStorage.Abstractions (>= 13.2.2)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
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 |
|---|---|---|
| 13.3.3 | 0 | 11/26/2026 |
| 13.3.2 | 114 | 11/3/2026 |
| 13.3.1 | 120 | 10/26/2026 |
| 13.3.0 | 123 | 10/22/2026 |
| 13.2.8 | 108 | 10/22/2026 |
| 13.2.7 | 146 | 10/11/2026 |
| 13.2.6 | 106 | 10/10/2026 |
| 13.2.5 | 125 | 10/2/2026 |
| 13.2.4 | 116 | 10/1/2026 |
| 13.2.3 | 113 | 10/1/2026 |
| 13.2.2 | 107 | 10/1/2026 |
| 13.2.1 | 114 | 10/1/2026 |
| 13.2.0 | 113 | 10/1/2026 |
| 13.1.3 | 116 | 9/21/2026 |
| 13.1.2 | 116 | 9/18/2026 |
| 13.1.1 | 110 | 9/18/2026 |
| 13.1.0 | 116 | 9/18/2026 |
| 13.0.2 | 109 | 9/18/2026 |
| 13.0.1 | 109 | 9/18/2026 |
| 13.0.0 | 110 | 9/18/2026 |