feat(esppApi): метод FindOrdersAsync поиска нарядов в АСУ ЕСПП по свойствам
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.EsppApi.Services;
|
||||
using PARR.EsppApi.Settings;
|
||||
|
||||
namespace PARR.EsppApi
|
||||
@@ -17,8 +16,12 @@ namespace PARR.EsppApi
|
||||
|
||||
services.AddTransient<IEsppApiService, EsppApiService>();
|
||||
|
||||
services.AddHttpClient<Espp>();
|
||||
//add other services
|
||||
services.AddHttpClient<EsppHttpService>(client =>
|
||||
{
|
||||
client.BaseAddress = new Uri(esppSettings.Url);
|
||||
client.DefaultRequestHeaders.Add("EsppUser", esppSettings.UserName);
|
||||
client.DefaultRequestHeaders.Add("EsppPassword", esppSettings.Password);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user