Set Dapr HttpEndpoint only if provided

Otherwise, the default value will be used and fine for most scenarios.
pull/14019/head
Halil İbrahim Kalkan 3 years ago
parent d5b12eda01
commit a3e8d4e923

@ -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