From d2c385989bac4a9e7937ca52f6461e5e391abaad Mon Sep 17 00:00:00 2001 From: Marc Calbet Date: Sat, 8 Oct 2022 19:09:16 +0200 Subject: [PATCH 1/2] Update Extensions.cs --- .../src/Convey.HTTP.RestEase/Extensions.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs b/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs index 7fce5a65..6c2de9b4 100644 --- a/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs +++ b/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs @@ -52,11 +52,7 @@ public static IConveyBuilder AddServiceClient(this IConveyBuilder builder, st private static IConveyBuilder AddServiceClient(this IConveyBuilder builder, string serviceName, RestEaseOptions options, Action registerFabio) where T : class - { - if (!builder.TryRegister(RegistryName)) { - return builder; - } var clientName = typeof(T).ToString(); @@ -109,4 +105,4 @@ private static void ConfigureForwarder(IServiceCollection services, string cl RequestQueryParamSerializer = new QueryParamSerializer() }.For()); } -} \ No newline at end of file +} From 57793b63a42929f74d5967020cd3bafea0863e44 Mon Sep 17 00:00:00 2001 From: Marc Calbet Date: Sat, 8 Oct 2022 19:45:30 +0200 Subject: [PATCH 2/2] fix adding multiple clients --- src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs b/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs index 6c2de9b4..0bb5697a 100644 --- a/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs +++ b/src/Convey.HTTP.RestEase/src/Convey.HTTP.RestEase/Extensions.cs @@ -52,7 +52,7 @@ public static IConveyBuilder AddServiceClient(this IConveyBuilder builder, st private static IConveyBuilder AddServiceClient(this IConveyBuilder builder, string serviceName, RestEaseOptions options, Action registerFabio) where T : class - { + { var clientName = typeof(T).ToString();