Minio.AspNetCore.HealthChecks 6.0.0
💥 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
No packages depend on Minio.AspNetCore.HealthChecks.
https://github.com/appany/Minio.AspNetCore/releases
.NET 6.0
- Minio.AspNetCore (>= 6.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.0)
.NET 7.0
- Minio.AspNetCore (>= 6.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.0)
.NET Standard 2.0
- Minio.AspNetCore (>= 6.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.0.1 | 6 | 5/30/2025 |
| 6.0.0 | 6 | 6/7/2025 |
| 5.0.0 | 5 | 6/7/2025 |
| 4.0.8 | 5 | 6/7/2025 |
| 4.0.7 | 5 | 6/7/2025 |
| 4.0.6 | 5 | 6/7/2025 |
| 4.0.5 | 5 | 6/7/2025 |
| 4.0.2 | 5 | 6/7/2025 |
| 4.0.1 | 5 | 6/7/2025 |
| 4.0.0 | 5 | 6/7/2025 |
| 3.1.22 | 5 | 6/7/2025 |
| 3.1.21 | 5 | 6/7/2025 |
| 3.1.20 | 5 | 6/7/2025 |
| 3.1.19 | 5 | 6/7/2025 |
| 3.1.17 | 5 | 6/7/2025 |
| 3.1.15 | 5 | 6/7/2025 |
| 3.1.14 | 5 | 6/7/2025 |
| 3.1.13 | 5 | 6/7/2025 |
| 1.0.0 | 5 | 6/7/2025 |