Избавиться от System.Configuration.ConfigurationManager в DD.Persistence.Client #23
@ -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/"
|
||||
}
|
||||
|
@ -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 сервиса.");
|
||||
|
Loading…
Reference in New Issue
Block a user