Aggiunta pagine status x MP-IOC (preliminare)
This commit is contained in:
+11
-1
@@ -4,6 +4,7 @@ using Microsoft.OpenApi.Models;
|
||||
using MP.Data;
|
||||
using MP.Data.Repository.Utils;
|
||||
using MP.Data.Services.Utils;
|
||||
using MP.IOC.Components;
|
||||
using MP.IOC.Data;
|
||||
using MP.IOC.Services;
|
||||
using NLog;
|
||||
@@ -76,6 +77,14 @@ string utilsConnString = builder.Configuration.GetConnectionString("MP.Utils") ?
|
||||
builder.Services.AddDbContextFactory<MoonPro_UtilsContext>(options =>
|
||||
options.UseSqlServer(utilsConnString));
|
||||
|
||||
#if false
|
||||
// gestione generica MP
|
||||
// aggiunta helper local/session storage service
|
||||
builder.Services.AddScoped<ISessionStorageService, SessionStorageService>();
|
||||
builder.Services.AddScoped<ILocalStorageService, LocalStorageService>();
|
||||
builder.Services.AddScoped<MessageService>();
|
||||
#endif
|
||||
|
||||
// MP.Data Services Utils - Statistiche DB
|
||||
builder.Services.AddScoped<IStatsAggrRepository, StatsAggrRepository>();
|
||||
builder.Services.AddScoped<IStatsDetailRepository, StatsDetailRepository>();
|
||||
@@ -181,6 +190,7 @@ app.UseAuthorization();
|
||||
// aggiunta x index.html
|
||||
app.UseDefaultFiles();
|
||||
app.UseStaticFiles();
|
||||
app.UseAntiforgery();
|
||||
|
||||
// Mappatura delle API
|
||||
app.MapControllers();
|
||||
@@ -189,7 +199,7 @@ app.MapControllers();
|
||||
app.MapRazorComponents<App>()
|
||||
.AddInteractiveServerRenderMode();
|
||||
|
||||
app.MapHealthChecks("/health");
|
||||
//app.MapHealthChecks("/health");
|
||||
|
||||
logger.Info("Run App");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user