Minio.AspNetCore
6.0.1
Requires NuGet 2.14 or higher.
dotnet add package Minio.AspNetCore --version 6.0.1
NuGet\Install-Package Minio.AspNetCore -Version 6.0.1
<PackageReference Include="Minio.AspNetCore" Version="6.0.1" />
<PackageVersion Include="Minio.AspNetCore" Version="6.0.1" />
<PackageReference Include="Minio.AspNetCore" />
paket add Minio.AspNetCore --version 6.0.1
#r "nuget: Minio.AspNetCore, 6.0.1"
#:package Minio.AspNetCore@6.0.1
#addin nuget:?package=Minio.AspNetCore&version=6.0.1
#tool nuget:?package=Minio.AspNetCore&version=6.0.1
💥 Minio.AspNetCore 💥
⚡️ Microsoft.Extensions.DependencyInjection and HealthChecks extensions for Minio client ⚡️
🔧 Installation 🔧
$> dotnet add package Minio.AspNetCore
🎨 Usage 🎨
✅ Add MinioClient
services.AddMinio(options =>
{
options.Endpoint = "endpoint";
// ...
options.ConfigureClient(client =>
{
client.WithSSL();
});
});
// Url based configuration
services.AddMinio(new Uri("s3://accessKey:secretKey@localhost:9000/region"));
// Get or inject
var client = serviceProvider.GetRequiredService<MinioClient>();
// Create new from factory
var client = serviceProvider.GetRequiredService<IMinioClientFactory>().CreateClient();
✅ Multiple clients support using named options
services.AddMinio(options =>
{
options.Endpoint = "endpoint1";
// ...
options.ConfigureClient(client =>
{
client.WithSSL();
});
});
// Named extension overload
services.AddMinio("minio2", options =>
{
options.Endpoint = "endpoint2";
// ...
options.ConfigureClient(client =>
{
client.WithSSL().WithTimeout(...);
});
});
// Explicit named Configure
services.AddMinio()
.Configure<MinioOptions>("minio3", options =>
{
options.Endpoint = "endpoint3";
// ...
});
// Get or inject first minio client
var client = serviceProvider.GetRequiredService<MinioClient>();
// Create new minio2
var client = serviceProvider.GetRequiredService<IMinioClientFactory>().CreateClient("minio2");
// Create new minio3
var client = serviceProvider.GetRequiredService<IMinioClientFactory>().CreateClient("minio3");
🚑 HealthChecks 🚑
// Minio.AspNetCore.HealthChecks package
services.AddHealthChecks()
.AddMinio(sp => sp.GetRequiredService<MinioClient>());
services.AddHealthChecks()
.AddMinio(sp => sp.GetRequiredService<MinioClient>())
.AddMinio(sp => /* Get named client from cache or create new */);
Breaking changes
- From 4.x to 5.x
- Target frameworks support netstandard, .net6 and .net7
Minioupgraded to 5.0.0
- From 3.x to 4.x
Minioupgraded to 4.0.0options.OnClientConfigurationreplaced withoptions.ConfigureClient(...)
- From 5.x to 6.x
Minioupgraded to 6.0.1- DI client type changed from
MinioClienttoIMinioClient
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Minio (>= 6.0.1)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Minio (>= 6.0.1)
-
net7.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Minio (>= 6.0.1)
NuGet packages (14)
Showing the top 5 NuGet packages that depend on Minio.AspNetCore:
| Package | Downloads |
|---|---|
|
Minio.AspNetCore.HealthChecks
ASP.NET Healthcheck extensions for MinIO .NET SDK. |
|
|
Strong.Minio
准备给FIS使用,去掉不必要的引用 |
|
|
Virtuesoft.Framework.Middlewares.MinioService
minio 服务组件,包括上传,下载转发 需要依赖 Minio.AspNetCore . |
|
|
Olenka.Libraries.Premium
Libreria de componentes seguros para microservicios de .Net 8 + Propiedad intelectual de Olenka Systems IT perteneciente a Daniel Nicolalde Mendoza |
|
|
PubSea.Framework
It is a Domain Driven Design Framework, including contracts for creating unified rest api and some helpers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.1 | 299,090 | 6/24/2024 |
| 6.0.0 | 77,201 | 1/8/2024 |
| 5.0.0 | 1,240,782 | 5/7/2023 |
| 4.0.8 | 36,896 | 2/22/2023 |
| 4.0.7 | 5,147 | 2/13/2023 |
| 4.0.6 | 207,486 | 12/15/2022 |
| 4.0.5 | 85,113 | 7/29/2022 |
| 4.0.4 | 5,274 | 6/14/2022 |
| 4.0.3 | 1,765 | 5/29/2022 |
| 4.0.2 | 17,836 | 4/10/2022 |
| 4.0.1 | 10,115 | 3/25/2022 |
| 4.0.0 | 14,266 | 3/15/2022 |
| 3.1.22 | 48,689 | 12/14/2021 |
| 3.1.21 | 14,660 | 7/24/2021 |
| 3.1.20 | 4,338 | 5/30/2021 |
| 3.1.19 | 5,143 | 4/12/2021 |
| 3.1.18 | 543 | 3/29/2021 |
| 3.1.17 | 10,545 | 3/26/2021 |
| 3.1.16 | 1,073 | 3/26/2021 |
| 3.1.15 | 3,496 | 2/26/2021 |
| 3.1.14 | 1,725 | 2/16/2021 |
| 3.1.13 | 49,551 | 11/23/2020 |
| 3.1.12 | 1,382 | 11/17/2020 |
| 3.1.11 | 27,724 | 10/19/2020 |
| 3.1.10 | 2,177 | 10/16/2020 |
| 3.1.9 | 1,403 | 10/7/2020 |
| 3.1.8 | 2,595 | 10/6/2020 |