Browse Source

Set Dapr HttpEndpoint only if provided

Otherwise, the default value will be used and fine for most scenarios.
pull/14019/head
Halil İbrahim Kalkan 4 years ago
parent
commit
a3e8d4e923
  1. 5
      framework/src/Volo.Abp.Http.Client.Dapr/Volo/Abp/Http/Client/Dapr/AbpInvocationHandler.cs

5
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<AbpDaprOptions> daprOptions)
{
DaprEndpoint = daprOptions.Value.HttpEndpoint;
if (!daprOptions.Value.HttpEndpoint.IsNullOrWhiteSpace())
{
DaprEndpoint = daprOptions.Value.HttpEndpoint;
}
}
}
Loading…
Cancel
Save