feat: se agrega la url de la api de nexus y se inicializa bll,apiservice
This commit is contained in:
parent
fd46c75b42
commit
903414e773
2 changed files with 11 additions and 5 deletions
|
@ -31,11 +31,10 @@ namespace Integracion_DGA
|
|||
.Build();
|
||||
|
||||
var envioDGA = host.Services.GetRequiredService<EnvioDGA>();
|
||||
var BussinessLogic = host.Services.GetRequiredService<BusinessLogic>();
|
||||
var ApiService = host.Services.GetRequiredService<ApiService>();
|
||||
var bussinessLogic = host.Services.GetRequiredService<BusinessLogic>();
|
||||
var apiService = host.Services.GetRequiredService<ApiService>();
|
||||
var integracion_dga = bussinessLogic.Run();
|
||||
var mediciones = await envioDGA.ObtenerMedicionesAsync();
|
||||
|
||||
Console.WriteLine($"Se obtuvieron {mediciones.Count} registros.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,13 @@
|
|||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=10.224.7.53,1433;Initial Catalog=ENVIO_DGA;Persist Security Info=False;User ID=enviodga;Password=esval++2022;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=true;Connection Timeout=30;"
|
||||
},
|
||||
"ApiSettings": {
|
||||
"ApiUrl": "http://smartscada.esval.cl:56000",
|
||||
"ApiKey": "3c5fa5dd-1b19-422a-b668-10b1b6c566e2",
|
||||
"Version": "v3.0",
|
||||
"DataSource": "RAW",
|
||||
"Resolution": "RES_15_MIN"
|
||||
},
|
||||
"ApiSubterranea": {
|
||||
"BaseUrl": "https://apimee.mop.gob.cl",
|
||||
"Endpoint": "/api/v1/mediciones/subterraneas"
|
||||
|
@ -15,5 +22,5 @@
|
|||
"LogFile": {
|
||||
"Path": "logs/log.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue