diff --git a/src/Minio.AspNetCore.HealthChecks/MinioHealthCheck.cs b/src/Minio.AspNetCore.HealthChecks/MinioHealthCheck.cs index 41ba597..07157ac 100644 --- a/src/Minio.AspNetCore.HealthChecks/MinioHealthCheck.cs +++ b/src/Minio.AspNetCore.HealthChecks/MinioHealthCheck.cs @@ -5,10 +5,10 @@ namespace Minio.AspNetCore.HealthChecks { public class MinioHealthCheck : IHealthCheck { - private readonly MinioClient minioClient; + private readonly IMinioClient minioClient; private readonly string bucket; - public MinioHealthCheck(MinioClient minioClient, string bucket) + public MinioHealthCheck(IMinioClient minioClient, string bucket) { this.minioClient = minioClient; this.bucket = bucket; diff --git a/src/Minio.AspNetCore.HealthChecks/MinioHealthChecksExtensions.cs b/src/Minio.AspNetCore.HealthChecks/MinioHealthChecksExtensions.cs index 2727ed2..14fcc80 100644 --- a/src/Minio.AspNetCore.HealthChecks/MinioHealthChecksExtensions.cs +++ b/src/Minio.AspNetCore.HealthChecks/MinioHealthChecksExtensions.cs @@ -12,7 +12,7 @@ public static class MinioHealthChecksExtensions /// public static IHealthChecksBuilder AddMinio( this IHealthChecksBuilder builder, - Func factory, + Func factory, string name = "minio", string bucket = "health", HealthStatus? failureStatus = null,