From a3e8d4e92367a9b9c8bdfc7f4534177aa0a91d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 14 Sep 2022 09:53:34 +0300 Subject: [PATCH] Set Dapr HttpEndpoint only if provided Otherwise, the default value will be used and fine for most scenarios. --- .../Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Http.Client.Dapr/Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs b/framework/src/Volo.Abp.Http.Client.Dapr/Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs index a3397b55e4..e13c6dbb04 100644 --- a/framework/src/Volo.Abp.Http.Client.Dapr/Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs +++ b/framework/src/Volo.Abp.Http.Client.Dapr/Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs @@ -9,6 +9,9 @@ public class AbpInvocationHandler : InvocationHandler, ITransientDependency { public AbpInvocationHandler(IOptions daprOptions) { - DaprEndpoint = daprOptions.Value.HttpEndpoint; + if (!daprOptions.Value.HttpEndpoint.IsNullOrWhiteSpace()) + { + DaprEndpoint = daprOptions.Value.HttpEndpoint; + } } } \ No newline at end of file