Избавиться от System.Configuration.ConfigurationManager в DD.Persistence.Client #23

Merged
ng.frolov merged 2 commits from fix/#884-remove-configurationManager into dev 2025-02-05 10:25:15 +05:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b894f61b66 - Show all commits

View File

@ -21,5 +21,5 @@
"grantType": "password",
"http://schemas.xmlsoap.org/ws/2005/05/identity /claims/nameidentifier": "7d9f3574-6574-4ca3-845a-0276eb4aa8f6"
},
"ClientUrl": "http://localhost:5000/"
"PeristenceClientUrl": "http://localhost:5000/"
}

View File

@ -22,7 +22,7 @@ public class RefitClientFactory<T> : IRefitClientFactory<T> where T : IRefitClie
//this.client = factory.CreateClient();
this.client = client;
var baseUrl = configuration.GetSection("ClientUrl").Get<string>();
var baseUrl = configuration.GetSection("PeristenceClientUrl").Get<string>();
if (String.IsNullOrEmpty(baseUrl))
{
var exception = new AppSettingsPropertyNotFoundException("В настройках конфигурации не указан адрес Persistence сервиса.");