From 6c04d28b99f9eace63c00aaca00b7a68869c7aa8 Mon Sep 17 00:00:00 2001 From: Alireza Baloochi Date: Wed, 30 Oct 2024 22:28:24 +0330 Subject: [PATCH] fix approved file --- .../HealthChecks.Qdrant.approved.txt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/test/HealthChecks.Qdrant.Tests/HealthChecks.Qdrant.approved.txt b/test/HealthChecks.Qdrant.Tests/HealthChecks.Qdrant.approved.txt index 34a924eda4..a05eb0c0a2 100644 --- a/test/HealthChecks.Qdrant.Tests/HealthChecks.Qdrant.approved.txt +++ b/test/HealthChecks.Qdrant.Tests/HealthChecks.Qdrant.approved.txt @@ -2,26 +2,14 @@ namespace HealthChecks.Qdrant { public class QdrantHealthCheck : Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck { - public QdrantHealthCheck(HealthChecks.Qdrant.QdrantHealthCheckOptions options) { } + public QdrantHealthCheck(Qdrant.Client.QdrantClient? client) { } public System.Threading.Tasks.Task CheckHealthAsync(Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckContext context, System.Threading.CancellationToken cancellationToken = default) { } } - public class QdrantHealthCheckOptions - { - public QdrantHealthCheckOptions() { } - public string? ApiKey { get; set; } - public Qdrant.Client.QdrantClient? Client { get; set; } - public System.Uri? ConnectionUri { get; set; } - public System.TimeSpan RequestedConnectionTimeout { get; set; } - } } namespace Microsoft.Extensions.DependencyInjection { public static class QdrantHealthCheckBuilderExtensions { - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Action? setup, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Action? setup, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string qdrantConnectionString, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Uri qdrantConnectionString, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddQdrant(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Func? clientFactory = null, string? name = "qdrant", Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { } } } \ No newline at end of file