From 3526fdbf2f04359b63d4c38f52aa0ff66fb99cc8 Mon Sep 17 00:00:00 2001 From: mahan Date: Thu, 27 Nov 2025 12:16:55 +0330 Subject: [PATCH] update domain checks for InternalApi baseUrl and improve error details in RoleApplication --- AccountManagement.Application/RoleApplication.cs | 3 ++- ServiceHost/Program.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AccountManagement.Application/RoleApplication.cs b/AccountManagement.Application/RoleApplication.cs index 51d05489..1342ac16 100644 --- a/AccountManagement.Application/RoleApplication.cs +++ b/AccountManagement.Application/RoleApplication.cs @@ -57,7 +57,8 @@ public class RoleApplication : IRoleApplication if (!response.Success) { _unitOfWork.RollbackAccountContext(); - return operation.Failed("ارتباط با اپلیکیش پروگرام منیجر برقرار نشد"); + + return operation.Failed("ارتباط با اپلیکیش پروگرام منیجر برقرار نشد"+response.Result.errorMessage +response.Result.ErrorType + response.Error); } if (!response.Result.isSuccess) diff --git a/ServiceHost/Program.cs b/ServiceHost/Program.cs index 8f08ea94..f6f0b770 100644 --- a/ServiceHost/Program.cs +++ b/ServiceHost/Program.cs @@ -357,11 +357,11 @@ if (host.Contains("localhost")) { baseUrl = builder.Configuration["InternalApi:Local"]; } -else if (host.Contains("dadmehrg.ir")) +else if (host.Contains("dadmehrg")) { baseUrl = builder.Configuration["InternalApi:Dadmehrg"]; } -else if (host.Contains("gozareshgir.ir")) +else if (host.Contains("gozareshgir")) { baseUrl = builder.Configuration["InternalApi:Gozareshgir"]; }